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

What is meaning of "Void main" in C Language.

24 Answers   Ford, GU, HCL, IBIBS, JUW, TCS,


program for swapping two strings by using pointers in c language

1 Answers  


Write a C program to convert an integer into a binary string?

1 Answers  


What does sizeof return c?

0 Answers  


Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?

1 Answers  


Is it fine to write void main () or main () in c?

0 Answers  


When should volatile modifier be used?

0 Answers  


What is the value of uninitialized variable in c?

0 Answers  


Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?

1 Answers   HCL,


Is javascript based on c?

0 Answers  


State the difference between realloc and free.

0 Answers   Aricent,


Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


Categories