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
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.
Tell me with an example the self-referential structure?
What is the difference between array and linked list in c?
What are the loops in c?
Explain what is the benefit of using #define to declare a constant?
Why cant I open a file by its explicit path?
What is the difference between struct and typedef struct in c?
What is strcpy() function?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is a built-in function in C?
What is equivalent to ++i+++j?
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)
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?
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.
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above