What is difference between the following 2 lines….

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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is operator precedence?

916


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

969


Explain do array subscripts always start with zero?

968


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1022


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2089


What is malloc calloc and realloc in c?

945


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

1009


What is array within structure?

858


What is volatile keyword in c?

799


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

903


Why we use stdio h in c?

805


Explain setjmp()?

848


How do I convert a string to all upper or lower case?

890


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1694


What is a wrapper function in c?

856