Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 8481

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

4 8820

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

2 9634

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 10257

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 6594





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 5415

what is the difference between class and unio?

1507

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 6456

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

1817

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

292

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

297

Differentiate fundamental data types and derived data types in C.

289

Explain pointer. What are function pointers in C?

271

Post New HCL C Interview Questions




HCL C Interview Questions


Un-Answered Questions

What is dynamic typing in python?

182


What are the Return ( Monthly / quarterly/ Annual submitted to Electical Inspector for an establishment (Factory in Maharashtra-- Small scale category having seperate HT line of 22KV ) as per Maharashtra Electricity Act

1188


How do u know that,what patch can be applicable on the system?

1447


What are additional actions?

249


distinguish between old version and new version QTP features.

1347






How do I sort a table alphabetically in word 2010?

169


In Kotlin can interface have implemented method?

61


What is purpose of xml?

184


Why do I get a security exception when I try to run my c# app?

255


How is SLR determined? What is the Need of SLR?

292


Why singleton class is used in java?

203


The rule of the Risk management provides a basic framework within which risk management decision can be made .Doscuss.

1531


Name the components of hdfs and yarn respectively

62


Write a program to retrieve the view object within plugin?

71


Explain what is densitometer is used for?

1