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 Interview Questions
Questions Answers Views Company eMail

#include main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 24445

#include main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

4 10264

a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above

2 11578

The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);

1 12093

b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720

1 7716

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2 6344

what is the difference between class and unio?

1861

int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 7586

To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2190

Write a program to print ASCII code for a given digit.

688

What is the maximum no. of arguments that can be given in a command line in C.?

668

Differentiate fundamental data types and derived data types in C.

618

Explain pointer. What are function pointers in C?

628

Post New HCL C Interview Questions


HCL C Interview Questions


Un-Answered Questions

What do “1”+2+4 evaluate to?

530


What is role of action class?

563


What is difference between int and int in c#?

453


Where the schedule margin key is customized?

763


How can you calculate the sum of any column of a table?

515






Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1517


How do you choose a design pattern?

566


What is setup exe file?

451


Which brand projector is best?

91


When should an artificial (or derived) primary key be used?

332


What's next on the hitlist with jquery ui?

506


Are variables stored in ram?

553


How can I update my website?

94


Explain how to make a net component talk to a com component?

3188


In case you have filters in your report, when filters will be applied in cached report instance?

81