how can u draw a rectangle in C

Answers were Sorted based on User's Feedback



how can u draw a rectangle in C..

Answer / sumit

using ASCII codes and then using goto statements

Is This Answer Correct ?    42 Yes 126 No

how can u draw a rectangle in C..

Answer / anonymous

Divide by Zero.

Is This Answer Correct ?    11 Yes 98 No

how can u draw a rectangle in C..

Answer / vincent

BY USING PRINTF AND SCANF

Is This Answer Correct ?    114 Yes 251 No

Post New Answer

More C Code Interview Questions

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

2 Answers   HCL,


main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }

1 Answers  


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

3 Answers   HCL,


write a c program to Reverse a given string using string function and also without string function

1 Answers  






main() { int i=5; printf(ā€œ%dā€,i=++i ==6); }

1 Answers  


main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


write a origram swaoing valu without 3rd variable

2 Answers  


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"); }

1 Answers  


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; } }

2 Answers   CSS, Wipro,


write a c-program to find gcd using recursive functions

5 Answers   HTC, Infotech,


main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


Categories