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 7012

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 7038

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 9666

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 9695

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 16065

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 5715

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 11258

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 6721

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 11447

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 7822

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

3 43232

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

4 35401

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

3 14771

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

9 18819

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

14 100598

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

How many days the deleted content will be available in Recycle Bin?

488


Explain how you can characterize tables in cobol?

642


i completed my b.tech.i want to prepare for civils. when new batch classes will start at rc reddy. plz mail me rajesh.mc28@gmail.com

1503


Do lists start at 0 or 1?

439


Which is better mysql or microsoft sql?

441






what are the thress bms options?

696


How to use transactions efficiently : transact sql

552


How do I find my clipboard?

308


Where are microsoft mail files stored?

527


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9222


How do I fix a corrupted windows file?

467


generally in LT and MV motors we are using 3.5Coresx16,25,35,50 etc cable for supply.although motors is earthed at two point and having all protection.then why we are using that 1/2 core for earthing the motors.while in HT cable we are using only 3core cable for motor supply.generally lt and mv motors are delta connected and ht motors having star connection.whethere it is having any relation with winding connection( star or delta).all motors i am talking about are dol only.can anybody solve my confusion.thanks...

1549


How do you set a viewport scale?

457


Explain the difference between mmwc and mmwg?

3576


How do I compress a file?

126