main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
Answer Posted / 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 |
Post New Answer View All Answers
FILE PROGRAMMING
How is pointer initialized in c?
Write a program to print all permutations of a given string.
What is structure pointer in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is a structure and why it is used?
What are the parts of c program?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
How can you read a directory in a C program?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is the ANSI C Standard?
can we implement multi-threads in c.
Which header file is essential for using strcmp function?
What is the correct code to have following output in c using nested for loop?
Why do we need volatile in c?