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

Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

4850


Tell me with an example the self-referential structure?

576


What is the difference between array and linked list in c?

613


What are the loops in c?

603


Explain what is the benefit of using #define to declare a constant?

618






Why cant I open a file by its explicit path?

604


What is the difference between struct and typedef struct in c?

669


What is strcpy() function?

664


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

666


What is a built-in function in C?

809


What is equivalent to ++i+++j?

653


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1874


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?

680


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1791


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1145