What is difference between the following 2 lines….

int temp = (int)(0x00);
int temp = (0x00int);

Answer Posted / mandoos

first is an integer declaration and initializing it with a
hex value

Second will produce syntax error, is that question is correct?

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the exit() function same as the return statement? Explain.

654


What is a far pointer in c?

590


Why can’t we compare structures?

803


find the sum of two matrices and WAP for it.

626


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

664






What does the c in ctime mean?

561


What is calloc in c?

654


What is #define used for in c?

609


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

649


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

600


What is the use of a static variable in c?

585


What is extern c used for?

563


What is scope and lifetime of a variable in c?

567


How do I create a directory? How do I remove a directory (and its contents)?

600


What is function prototype?

605