how can u draw a rectangle in C
Answers were Sorted based on User's Feedback
Answer / sumit
using ASCII codes and then using goto statements
Is This Answer Correct ? | 42 Yes | 126 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
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
how to print 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 using any loop(for or while) only once(only 1 loop) and maximum 2 variables using C.
19 Answers Cap Gemini, Infosys,
#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above
write a c program to Reverse a given string using string function and also without string function
main() { int i=5; printf(ā%dā,i=++i ==6); }
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
write a origram swaoing valu without 3rd variable
main() { int y; scanf("%d",&y); // input given is 2000 if( (y%4==0 && y%100 != 0) || y%100 == 0 ) printf("%d is a leap year"); else printf("%d is not a leap year"); }
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }
write a c-program to find gcd using recursive functions
main() { char a[4]="HELL"; printf("%s",a); }