main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}
Answer Posted / baba
Ans: 12
The expression in printf evaluates the difference of the memory addresses of ptr[3] and ptr[0]
Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
What are high level languages like C and FORTRAN also known as?
What is the use of typedef in c?
Explain how can I make sure that my program is the only one accessing a file?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Write a program to print all permutations of a given string.
What does p mean in physics?
What is substring in c?
number of times a digit is present in a number
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
can we change the default calling convention in c if yes than how.........?
What is double pointer in c?
Is void a keyword in c?
Can you think of a logic behind the game minesweeper.
What is call by reference in functions?
Differentiate call by value and call by reference?