🚀 Launch OFFER 🚀 Free 10 Credits for all newly created accounts - Get Started for Free (No Credit Card required) Click Here.

Search for your subset of questions

Question Code

1114

Question

Header files are listed using the preprocessing directive #include, and can have one of the following formats: #include <file X> or #include "file Y". What is the difference between these two formats?

Answers

The preprocessor will try to locate file X in same directory as the source file, and the file Y in a predetermined directory path.

The preprocessor will try to locate file X in the fixed system directory. It will try to locate file Y in the directory path designated by the -I option added to the command line while compiling the source code.

The file using the file X syntax must be system files, of unlimited number; file Y must be a user file at a maximum of one per source file.

The preprocessor will try to locate file X in a predetermined directory path. It will try to locate file Y in the same directory as the source file along with a custom directory path.

Question Code

1126

Question

What is the output of this program?

main() 
{
    char a1='a' , a2='A';
    int i=a2-a1;
    printf("%d", i);
}

Answers

32

Runtime error

-32

0

Sign up to unlock the question bank

Sign up now

Already have an account? Log in

© 2024 merreo - All rights reserved.