Question Set

1. There exists a way to prevent the same file from getting #included twice in the same program.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.00 pm
    True, We can prevent the same file from getting included again by using a preprocessor directive called #ifndef (short for "if not defined") to determine whether we've already defined a preprocessor symbol called XSTRING_H. If we have already defined this symbol, the compiler will ignore the rest of the file until it sees a #endif (which in this case is at the end of the file). #ifndef XSTRING_H #define XSTRING_H defines the same preprocessor symbol, Finally, the last line of the file, #endif
Show Similar Question And Answers
QA->The phenomenon by which the same element exists in the same physical state in different forms is known as?....
QA->Where there is will, there is a way എന്ന ചൊല്ലിനു സമാനമായതേത്?....
QA->Which is not included in the sources of energy, getting for agricultural work ?....
QA->The extension jpeg in the name of a file indicates that it is a/an file.....
QA->There is no chance of your getting that medicine Frame a question to the above statement from the following....
MCQ->There exists a way to prevent the same file from getting #included twice in the same program.....
MCQ->Point out the error in the program? #include<stdio.h> / Assume there is a file called 'file.c' in c:\tc directory. / int main() { FILE fp; fp=fopen("c:\tc\file.c", "r"); if(!fp) printf("Unable to open file."); fclose(fp); return 0; }....
MCQ->In three coloured boxes - Red, Green and Blue, 108 balls are placed. There are twice as many balls in the green and red boxes combined as there are in the blue box and twice as many in the blue box as there are in the red box. How many balls are there in the green box ?....
MCQ->In three coloured boxes-red, green and blue, totally 108 balls are placed. There are twice as many balls in the green and red boxes combined as there are in blue box and twice as many in the blue box as there are in the red box. How many balls are there in the green box....
MCQ->Statement: Delink degrees with jobs. Then, boys will think twice before joining colleges. Assumptions: Boys join college education for getting jobs. A degree is of no use for getting a job. Girls do not try for jobs.

....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution