Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

HCL C Code Interview Questions
Questions Answers Views Company eMail

main() { int x=5; clrscr(); for(;x==0;x--) { printf("x=%d\nā€", x--); } } a. 4, 3, 2, 1, 0 b. 1, 2, 3, 4, 5 c. 0, 1, 2, 3, 4 d. none of the above

3 6982

main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above

2 7015

main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. ā€“3, -1, 1, 3, 5

2 9640

main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error

1 9674

main() { int i; clrscr(); for(i=0;i<5;i++) { printf("%d\n", 1L << i); } } a. 5, 4, 3, 2, 1 b. 0, 1, 2, 3, 4 c. 0, 1, 2, 4, 8 d. 1, 2, 4, 8, 16

4 15997

main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4

2 5681

main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256

2 11228

main() { if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

3 6690

main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

5 11392

main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

3 7797

main() { printf("%x",-1<<4); }

3 43184

#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

4 35340

int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }

3 14738

main() { int *j; { int i=10; j=&i; } printf("%d",*j); }

9 18738

How we print the table of 2 using for loop in c programing?

14 100483

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

How many messaging models do jms provide for and what are they?

540


What is .empty()? : jquery mobile

443


Is port 8000 a tcp or udp?

559


What is p table in angular?

412


what are the different types of variables available in cl?

1007






What is am.

619


Why in a continuous plant for a Hot standby screw pump system the interlock for auto starting of the other pump ( when the running pump stopped suddenly) is given with header pressure only? why not with flow rate or current of the pump?

1388


What is wc in shell script?

557


What is exposing a property?

194


What will you do if you suggest something in a meeting but your colleagues do not agree?

673


my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

1532


What is the dfd (data flow diagram)?

608


What is Machine learning?

52


What is the use of the position and size command in sapscripts?

529


What is the difference between rulling span and wind span of of an Over Head Transmission Line?

1837