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 |
What is the hidden bug with the following statement? assert(val++ != 0);
What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
How to read a directory in a C program?
main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }
write a program for area of circumference of shapes
Write a C program to add two numbers before the main function is called.
There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
source code for delete data in array for c
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
C program to print magic square of order n where n > 3 and n is odd