main()
{
char *p = “ayqm”;
char c;
c = ++*p++;
printf(“%c”,c);
}
Answer / susie
Answer :
b
Explanation:
There is no difference between the expression ++*(p++) and
++*p++. Parenthesis just works as a visual clue for the
reader to see which expression is first evaluated.
Is This Answer Correct ? | 5 Yes | 1 No |
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
find simple interest & compund interest
What is the hidden bug with the following statement? assert(val++ != 0);
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
Develop a routine to reflect an object about an arbitrarily selected plane
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
Write a routine that prints out a 2-D array in spiral order
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }