main()
{int a=200*200/100;
printf("%d",a);
}
Answers were Sorted based on User's Feedback
Answer / dally
200*200/100
here both *,% contained same priority and also left->right
shift so the excusion will start from left->right so answer is
400.
| Is This Answer Correct ? | 4 Yes | 8 No |
Answer / rukmanee
int a=200*200/100;
=200*2;
=400;
the value of a=400
| Is This Answer Correct ? | 1 Yes | 7 No |
6. Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail
What is the meaning of typedef struct in c?
What is a structure member in c?
What is difference between array and structure in c?
What is structure of c program?
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 Answers Vector, Vector India,
What is advantage of pointer in c?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)
1 Answers Bosch, College School Exams Tests,
What is difference between structure and union in c programming?