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 |
print out of string in this format; 1. "rajesh" 2. \n 3. %d
write a program in c to read array check element is present or not?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Can we use visual studio for c?
What are the basic data types associated with c?
What are local and global variables?
What is ambagious result in C? explain with an example.
Why do we write return 0 in c?
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
What is the purpose of main() function?
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
Combinations of fibanocci prime series