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 6930

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 6971

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 9592

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 9618

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 15918

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 5624

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 11139

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 6634

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 11287

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 7719

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

3 42977

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

4 35232

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

3 14608

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

9 18604

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

14 100248

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

Write a program to find the biggest number of three numbers in c?

564


What is the use of idl2java [options] {filename}?

1008


How do I create a dynamic web project?

452


What is raito of coolent level in DG

1623


What goals do you have in your career?

1537






What is a table?

545


Whether the TIN and CST no. remain same for a firm in M.P. state. If a firm ask for CST but having only TIN no. is it correct to entertain his invoice?

1453


In Synchronous communication, what are common errors that can occur in this communication scenario?

216


what is unique key constraint? : Sql dba

544


what is Drupal weight?

105


Explain me how would you handle an imbalanced dataset?

47


What do you mean by an execution plan?

547


What is the difference between business area and profit center?

638


y neutal is required for 3 phase. neutral carrys only current or voltage. in 3 phase circuits.

1458


Is it possible to have multiple actions in a same form?

417