Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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 8801

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 14379

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 9365

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 10263

main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”

5 20034

main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O

4 13029

How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)

4 10050

const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above

1 9662

struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error

3 8729

struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above

2 10327

main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above

3 10432

main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above

4 15009

void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above

1 11312

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 b. 2, 100 c. 4, 100 d. 4, 4

18 36839

main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above

5 12231

Post New HCL Interview Questions


HCL Interview Questions


Un-Answered Questions

What are the differences between datamart vs. Reporting cube?

1163


132/6.6𝚔𝚟 𝚝𝚛𝚊𝚗𝚜𝚏𝚘𝚛𝚖𝚎𝚛 𝚗𝚎𝚞𝚝𝚛𝚊𝚕 𝚑𝚊𝚜 𝚘𝚗𝚎 𝚎𝚊𝚛𝚝𝚑 𝚙𝚒𝚝 𝚍𝚎𝚍𝚒𝚌𝚊𝚝𝚎𝚍. 𝙸'𝚟𝚎 𝚊𝚗𝚘𝚝𝚑𝚎𝚛 𝚝𝚛𝚊𝚗𝚜𝚏𝚘𝚛𝚖𝚎𝚛 𝚘𝚏 6.6𝚔𝚟/415𝚟 𝚌𝚊𝚗 𝙸 𝚌𝚘𝚗𝚗𝚎𝚌𝚝 𝚗𝚎𝚞𝚝𝚛𝚊𝚕 𝚝𝚘 𝚜𝚊𝚖𝚎 𝚎𝚊𝚛𝚝𝚑 𝚙𝚒𝚝 𝚊𝚜 𝚘𝚏 13/6.𝚔𝚟 𝚝𝚛𝚊𝚗𝚜𝚏𝚘𝚛𝚖𝚎𝚛?? 𝙸𝚏 𝙽𝚘.. 𝚃𝚑𝚎𝚗 𝚠𝚑𝚢??

1021


What are the advantages of properties in c#?

1024


What is the use of intialize verb?

1304


I am working in pharma company from last 15 years and my age is 36 years now i want to join BPO can i join ?

2215


How to Create an Intranet Site Using ASP.NET MVC?

1157


We have 6.6 KV, 250 KW HT Motor and i want to run this motor with 250 KW LT Variable frequency drive. Is this Possible? How? what are the major modification required?

2263


Which is the best language for machine learning?

87


How do you change a file format?

1068


Can you run linux on any laptop?

933


To create a windows 7 workstation that supports multiple languages, you must begin by installing the english language version. State true or false.

1006


What is synonyms?

1121


why should we hire you if we can promote our employee from within?

1193


What is supply management in srm ?

1056


How do you check whether the two variables are pointing to the same object in python?

899