Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

char *p;

Answers were Sorted based on User's Feedback

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

Answer / surenda pal singh chouhan


* 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 ?    22 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:
so it woill process as givwn above in stack

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More C Interview Questions

What is c method?

0 Answers  

explain what is a newline escape sequence?

0 Answers  

WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  

The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

0 Answers  

How do I send escape sequences to control a terminal or other device?

0 Answers  

What language is lisp written in?

0 Answers  

program to find the magic square

1 Answers   Infosys,

What is the difference between array and pointer in c?

0 Answers  

Why enum is used in c?

0 Answers  

how to capitalise first letter of each word in a given string?

0 Answers  

Can we write a program without main() function?

9 Answers  

why do we use # in c-language?

1 Answers