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 269454

how can u draw a rectangle in C

53 125745

What is the main difference between STRUCTURE and UNION?

13 192557

program to find magic aquare using array

4 9032

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

1 4299

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 11198

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 13950

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 12247

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

2 15066

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

3 14383

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 8213

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 8954

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 14492

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 9547

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 10391

Post New HCL C Code Interview Questions


HCL C Code Interview Questions


Un-Answered Questions

What are the procedures for remitting WCT?

2230


Hi friends, what are the new features in abinito3.0?

2907


Have you ever had to bend the rules to get the job done. Why was that?

1223


What are the hurdles you faced in past job?

1180


how you will decide the distance between the power transformer and its fencing

2071


please can you help me to get a code of flames using a visual basic 6

1937


rrbchennaimodel question paper for current papers

2858


When to use explode in Hive?

857


plz send me the apptitude question papers of wipro

2209


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1203


Name at least 5 different types of transformations used in mapping design and state the use of each.?

1261


hi i am electronics & telecomm engg & appling 4 the AAI jr executive (electronics/ATC) written test. pls forward me the syllabus & old question papers.I will be very much thankful to you. das.nilanjana2000@gmail.com

1991


Any one regarding result of NIC(National Informatices Centre) interview for SB Programmer?

2509


Hi, I want to write ISTQB exam. Can anybody send me the material regarding this.

2705


Sir/Mam, I have applied for RRB chennai for the section engineer - mechanical posting. If any one is having the old written exam question papers please send it to my mail id : spramu@gmail.com Thanks in advance, Ramanathan...

2090