HCL Interview Questions for Experienced on C HCL Interview Process for Experienced
1 / 24
No Discussion on this question yet!
No Tags on this question yet!
2 / 24
No Discussion on this question yet!
No Tags on this question yet!
3 / 24
No Discussion on this question yet!
No Tags on this question yet!
4 / 24
#include
int main(){
int i = -1, j=0,k=1;
int r = ++i || j++ && --k;
printf("%d %d %d %d", i, j, k, r);
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
5 / 24
#include
int main(){
if()
printf("Empty");
else
printf("not Empty");
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
6 / 24
#include
int main(){
char *cptr=0;
int *iptr=0;
void *vptr=0;
cptr++;
iptr++;
vptr++;
printf("%u %u %u",cptr,iptr,vptr);
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
7 / 24
#include
int main(){
char *ptr = 0;
free(ptr);
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
8 / 24
#include
#define CPTR char *
typedef char * CHPTR;
int main(){
CPTR c1, c2;
CHPTR c3, c4;
printf("%d %d %d %d", sizeof(c1), sizeof(c2),sizeof(c3),sizeof(c4));
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
9 / 24
No Discussion on this question yet!
No Tags on this question yet!
10 / 24
No Discussion on this question yet!
No Tags on this question yet!
11 / 24
void increment()
{
static int i = 4;
printf("%d",i);
i++;
}
int main()
{
int i= 0;
printf("%d", i);
i++;
increment();
printf("%d",i);
return 0;
}
No Discussion on this question yet!
No Tags on this question yet!
12 / 24
No Discussion on this question yet!
No Tags on this question yet!
13 / 24
No Discussion on this question yet!
No Tags on this question yet!
14 / 24
No Discussion on this question yet!
No Tags on this question yet!
15 / 24
No Discussion on this question yet!
No Tags on this question yet!
16 / 24
No Discussion on this question yet!
No Tags on this question yet!
17 / 24
No Discussion on this question yet!
No Tags on this question yet!
18 / 24
No Discussion on this question yet!
No Tags on this question yet!
19 / 24
No Discussion on this question yet!
No Tags on this question yet!
20 / 24
No Discussion on this question yet!
No Tags on this question yet!
21 / 24
No Discussion on this question yet!
No Tags on this question yet!
22 / 24
No Discussion on this question yet!
No Tags on this question yet!
23 / 24
No Discussion on this question yet!
No Tags on this question yet!
24 / 24
No Discussion on this question yet!
No Tags on this question yet!
- HCL Technologies Interview Question Set 1
- HCL Technologies Interview Question Set 2
- >> HCL Technologies Interview Question Set 3
- HCL Technologies Interview Question Set 4
- HCL Technologies Interview Question Set 5
- HCL Technologies Interview Question Set 6
- HCL Technologies Interview Question Set 7
- HCL Technologies Interview Question Set 8
- HCL Technologies Interview Question Set 9
- HCL Technologies Interview Question Set 10