C Programming and Technical Logical Reasoning Coding Decoding

Q. What will be printed as the result of the operation below:
main()
{
int a=0;
if(a==0)
printf(“Cisco Systemsn”);
printf(“Cisco Systemsn”);
}

Read Solution (Total 4)

C Other Question

Q. What will be the result of the following code?
#define TRUE 0 // some code
while(TRUE)
{
// some code
}

A. This will not go into the loop as TRUE is defined as 0.
Q. Do you know pragma directives in c?

A. Pragma is implementation specific directive i.e each pragma directive has different implementation rule and use. If compiler does not recognize particular pragma it simply ignore that pragma statement without showing any error or warning message and execute the whole program assuming this pragma statement is not present.