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

How to swap two variables, without using third variable ?

104 223079

how can u draw a rectangle in C

53 107727

What is the main difference between STRUCTURE and UNION?

13 187282

program to find magic aquare using array

4 6865

Write a program to model an exploding firecracker in the xy plane using a particle system

3680

main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above

1 9862

main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above

4 11668

main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above

2 10605

main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024

2 13827

#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above

3 12646

union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); } a. 4, 4, 0 b. 0, 0, 0 c. 100, 4, 0 d. 40, 4, 0

1 6916

union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4

3 7274

main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number

1 13104

main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000

3 7555

main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error. b. 0, 0 c. Compile error d. the first two values entered by the user

2 8886

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

You’ve manually edited the psappsrv.cfg file.  Will the domain recognize the changes?

1016


When should you test playbooks and roles?

1


Is iis considered middleware?

920


How does nifi support huge volume of payload in a dataflow?

5


what are the industrail measures to over ferranti effect? how would the ferranti effect the power system if those remedial mearsure arent taken? how often does this effect occurs in real power system?

1672






What do you know about cloud computing? How can jenkins fit into a cloud computing environment? Explain with an example.

1


What are partial, alternate, artificial, compound and natural key?

523


tell me WebLogic Architecture briefly ?

983


what is the maintaining Cf in UPS.

1725


What is server operating system?

558


What is ejb and its uses?

503


Diborane contains how many banana bonds?

654


What are the 2 types of spreadsheet?

303


What are the responsibilities of dentist?

479


What is meant by the DeadLetter queue?

261