What is difference between the following 2 lines….

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the characteristics of arrays in c?

617


How is null defined in c?

656


How can I split up a string into whitespace-separated fields?

573


Define VARIABLE?

692


Is fortran faster than c?

587






What is clrscr in c?

682


What is printf () in c?

582


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

637


What functions are in conio h?

664


What are the c keywords?

754


What is the benefit of using const for declaring constants?

592


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1362


Write a program to print factorial of given number without using recursion?

573


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

631


int i=10; printf("%d %d %d", i, i=20, i);

1018