main()

{

char *p;

p="Hello";

printf("%c\n",*&*p);

}



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

Answer / susie

Answer :

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.
Again & references it to an address and * dereferences it
to the value H.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Code Interview Questions

Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

0 Answers  


Print an integer using only putchar. Try doing it without using extra storage.

2 Answers  


main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

2 Answers   IBM,


main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);

1 Answers  


What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


What are the files which are automatically opened when a C file is executed?

1 Answers  


main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }

2 Answers  


Write a function to find the depth of a binary tree.

13 Answers   Adobe, Amazon, EFI, Imagination Technologies,


main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


Categories