void main()
{
int *ptr;
ptr = (int *) 0x400 ;
printf("ptr=%d",ptr);
}
output?
Answer Posted / koti
Ans is 1024.
Why because here ptr is pointing to integer address 0x400.this is hexadecimal address but you are printing decimal value.
The hexadecimal value is
........0000 0100 0000 0000
2 power10 =1024.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of bitwise operator?
Why c is faster than c++?
What is a lvalue
What is the difference between fread and fwrite function?
Compare and contrast compilers from interpreters.
What is the total generic pointer type?
How to get string length of given string in c?
Explain how do you search data in a data file using random access method?
What are the valid places to have keyword “break”?
What kind of structure is a house?
What is a macro in c preprocessor?
Describe the header file and its usage in c programming?
What is non linear data structure in c?
Does * p ++ increment p or what it points to?
How can I split up a string into whitespace-separated fields?