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's the right way to use errno?
Explain about block scope in c?
what is real time system?what is the differance between hard and soft real time systems
write the program for maximum of the following numbers? 122,198,290,71,143,325,98
What are categories used for in c?
What is diffrance between declaration and defination of a variable or function
What is hashing in c language?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Write a program to print prime nums from 1-20 using c programing?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Describe the difference between = and == symbols in c programming?
any string of bits of length 'n' represents a unique non- negative integer between.............?