main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
Answers were Sorted based on User's Feedback
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 |
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 |
i need all types of question paper releted to "c" and other language.
What is difference between static and global variable in c?
how is the examination pattern?
what is the difference between exit() and _exit() functions?
write a addition of two no. program with out using printf,scanf,puts .
Can we write a program without main() function?
What are the benefits of organizational structure?
Define macros.
Difference between null pointer and dangling pointer?
What is %d called in c?
Write a program to find minimum between three no.s whithout using comparison operator.
Why can’t we compare structures?