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 7464

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 7429

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 10064

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 10044

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 16814

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 6286

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 11963

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 7206

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 12404

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 8341

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

3 44568

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

4 36295

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

3 15594

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

9 20233

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

14 102415

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

How to configure system to allow notification type change?

643


plzzz..send me the pevious papers of drug inspector for uppsc....i.l b highly oblige

2215


What is a full-class C in CIDR notation?

12511


What is the major difference between Normal control loop and Cascade control loop and when to use cascade control loop?

3136


what do you mean by Develop test data through sourcing (or) handcrafting techniques

2555






What is a key in dbms?

644


What are virtual business comp. Refered to in Siebel?

692


What is working principle of profibus and how it transfer data?

781


What is thresh hold value of current?

1796


3. Steps in UAT?

2153


what is the reason for balance sheet not getting tallyed

1904


Which is the biggest cell?

735


What are all the components of sap xapps?

776


How does lambda function differ from a normal function in python?

632


Does the suction force facilitate or make difficult the entrance of water in the cell?

623