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 |
what is the flow of execution in cprogram? ex:printf();,scanf();
What is the process to create increment and decrement stamen in c?
What is the need of structure in c?
What is main () in c?
what are advantages of U D F?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What functions are used for dynamic memory allocation in c language?
What is the size of enum in c?
What is C++
What is the basic structure of c?
which types of data structure will i use to convert infix to post fix???
What do you mean by a local block?