void main()
{
int *ptr;
ptr = (int *) 0x400 ;
printf("ptr=%d",ptr);
}
output?
Answer / 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 |
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Discuss the function of conditional operator, size of operator and comma operator with examples.
Why is void main used?
How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.
What is the difference between a string and an array?
What is the use of bit field?
inline function is there in c language?
When was c language developed?
What is array in c with example?
What is function prototype?
convert 12345 to 54321 withoutusing strig
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer