void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
4..2
Explanation:
the second pointer is of char type and not a far pointer
| Is This Answer Correct ? | 5 Yes | 1 No |
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
What is the hidden bug with the following statement? assert(val++ != 0);
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
void main() { printf(“sizeof (void *) = %d \n“, sizeof( void *)); printf(“sizeof (int *) = %d \n”, sizeof(int *)); printf(“sizeof (double *) = %d \n”, sizeof(double *)); printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct unknown *)); }
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
char inputString[100] = {0}; To get string input from the keyboard which one of the following is better? 1) gets(inputString) 2) fgets(inputString, sizeof(inputString), fp)