main()
{
int i = 3;
for (;i++=0;) printf(“%d”,i);
}
Answer / susie
Answer :
Compiler Error: Lvalue required.
Explanation:
As we know that increment operators return rvalues and
hence it cannot appear on the left hand side of an
assignment operation.
| Is This Answer Correct ? | 14 Yes | 1 No |
main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error. b. 0, 0 c. Compile error d. the first two values entered by the user
find simple interest & compund interest
main() { int a[10]; printf("%d",*a+1-*a+3); }
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
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"
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
Derive expression for converting RGB color parameters to HSV values
Give a oneline C expression to test whether a number is a power of 2?
25 Answers EA Electronic Arts, Google, Motorola,
abcdedcba abc cba ab ba a a