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 Shallow copy and Deep copy?

0 Answers  


write a program to display all prime numbers

0 Answers  


which is faster execution: loops or recursion?

3 Answers  


who did come first hen or agg

15 Answers   Infosys,


Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }

4 Answers   Subex,






how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


How can you access memory located at a certain address?

0 Answers  


What is a spanning Tree?

1 Answers   TCS,


What do you mean by a sequential access file?

0 Answers  


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

0 Answers   TCS,


Write a program in C to reverse a number by recursive function?

1 Answers  


int i=~0; uint j=(uint)i; j++; printf(“%d”,j);

1 Answers  


Categories