main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}

Answers were Sorted based on User's Feedback



main() { char *p; p="Hello"; printf("%c\n",*&*p); } ..

Answer / surenda pal singh chouhan

H

Explanation:
* is a dereference operator & is a reference operator.
They can be applied any number of times provided it is
meaningful. Here p points to the first character in the
string "Hello". *p dereferences it and so its value is H.

Is This Answer Correct ?    23 Yes 1 No

main() { char *p; p="Hello"; printf("%c\n",*&*p); } ..

Answer / vignesh1988i

the output will be 'H'...... this is because... first the
variables with pointers as:
*
&
*
p
so it woill process as givwn above in stack

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More C Interview Questions

#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

3 Answers   SRG,


Explain the use of 'auto' keyword

0 Answers  


Why do we need volatile in c?

0 Answers  


What is null pointer constant?

0 Answers  


what is the program to display your name in any color?

2 Answers   HCL,






Write a c program to demonstrate Type casting in c?

2 Answers  


How can you find out how much memory is available?

0 Answers  


What are pointers really good for, anyway?

0 Answers  


What are the advantages of union?

0 Answers  


What does the characters “r” and “w” mean when writing programs that will make use of files?

0 Answers  


Is c call by value?

0 Answers  


Which node is more powerful and can handle local information processing or graphics processing?

0 Answers  


Categories