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 ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,getchar or putchar
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
What is the difference between typedef and #define?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string
Are negative numbers true in c?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is the relationship between pointers and data structure?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Why clrscr is used after variable declaration?
What is the description for syntax errors?