What is difference between the following 2 lines….

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

Answers were Sorted based on User's Feedback



What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00in..

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

What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00in..

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 is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00in..

Answer / akshay

there is No diff

Question is absolutely Correct

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More C Interview Questions

Difference between C and Embedded C?

1 Answers  


Why isn't any of this standardized in c? Any real program has to do some of these things.

0 Answers  


What is the modulus operator?

0 Answers  


Is it possible to create recycle bin in mobiles?

2 Answers  


Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  






What does malloc () calloc () realloc () free () do?

0 Answers  


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

0 Answers  


main() { clrscr(); } clrscr();

6 Answers   ME, Wipro,


Explain what does the format %10.2 mean when included in a printf statement?

0 Answers  


Why is void main used?

0 Answers  


Why is c not oop?

0 Answers  


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


Categories