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


Please Help Members By Posting Answers For Below Questions

What are high level languages like C and FORTRAN also known as?

678


What is the use of typedef in c?

577


Explain how can I make sure that my program is the only one accessing a file?

615


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

654


Write a program to print all permutations of a given string.

637






What does p mean in physics?

577


What is substring in c?

632


number of times a digit is present in a number

1537


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

660


can we change the default calling convention in c if yes than how.........?

2027


What is double pointer in c?

581


Is void a keyword in c?

570


Can you think of a logic behind the game minesweeper.

2002


What is call by reference in functions?

553


Differentiate call by value and call by reference?

560