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

How can my program discover the complete pathname to the executable from which it was invoked?

0 Answers  


What is the purpose of 'register' keyword in c language?

0 Answers  


What is the output from this program? #include <stdio.h> void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2 + the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d\n", first, second); return 0; }

3 Answers  


which types of data structure will i use to convert infix to post fix???

5 Answers   IIT,


What are the different types of errors?

0 Answers  






How can I implement sets or arrays of bits?

0 Answers  


write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?

5 Answers   HCL,


write a program to display numbers from 1 to 10 and 10 to 1?

2 Answers  


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

0 Answers   TCS,


which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma

16 Answers   Accenture, Infosys, TCS, Wipro,


What is signed and unsigned?

0 Answers  


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

0 Answers  


Categories