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
Why doesnt the call scanf work?
How to declare pointer variables?
what does static variable mean?
Why is this loop always executing once?
What is the right type to use for boolean values in c? Is there a standard type?
Explain how do you determine the length of a string value that was stored in a variable?
Why structure is used in c?
What is structure padding in c?
Explain what are global variables and explain how do you declare them?
In which layer of the network datastructure format change is done
All technical questions
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Differentiate between full, complete & perfect binary trees.
What is meant by inheritance?
Write a program to reverse a linked list in c.