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 |
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.
How do I round numbers?
Can you please explain the difference between exit() and _exit() function?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
char *p="name"; printf(p);
find the size of structure without using the size of function
What is ctrl c called?
How do you write a program which produces its own source code as its output?
What is the use of ?: Operator?
What is an anonymous union and where to apply that ?
What is hungarian notation? Is it worthwhile?
what is an ERP?