What is difference between the following 2 lines….
int temp = (int)(0x00);
int temp = (0x00int);
Answers were Sorted based on User's Feedback
Answer / s.srinivasulu
first one is valid initialization and
second one syntax error and it will give compilation error
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / 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 |
What does the file stdio.h contain?
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
What is the maximum no. of arguments that can be given in a command line in C.?
What are pointers? What are stacks and queues?
What is a structure in c language. how to initialise a structure in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Explain what happens if you free a pointer twice?
How can I ensure that integer arithmetic doesnt overflow?
what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above
3 Answers Accenture, Infosys, Wipro,
write a program to print sum of each row of a 2D array.
Explain how do you print an address?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321