main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
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 |
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.
Print an integer using only putchar. Try doing it without using extra storage.
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
main() { char a[4]="HELL"; printf("%s",a); }
Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
What are the files which are automatically opened when a C file is executed?
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); }
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)); }
How we will connect multiple client ? (without using fork,thread)
can u give me the c codings for converting a string into the hexa decimal form......