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

Write a program to show the change in position of a cursor using c

0 Answers  


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


Explain null pointer.

0 Answers  


What is the use of #define preprocessor in c?

0 Answers  


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  






Expand the following LKB BKL FFG

0 Answers  


What is d'n in c?

0 Answers  


How can you tell whether two strings are the same?

0 Answers  


What are the various topologies? Which one is the most secure?

2 Answers  


what is the difference between while and do while?

2 Answers  


identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


What does c mean before a date?

0 Answers  


Categories