C Interview Questions
Questions Answers Views Company eMail

FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

Wilco,

1183

What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

Wilco,

684

What does. int *x[](); means ?

Wilco,

624

a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

Wilco,

633

main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

Wilco,

623

main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

Wilco,

897

main() { printf("hello"); fork(); }

Wilco,

683

main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

Wilco,

905

typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

Wilco,

1058

Differentiate between null and void pointers.

TCS,

620

Explain the difference between null pointer and void pointer.

TCS,

654

Explain the Difference between the New and Malloc keyword.

InterGraph,

674

The statement, int(*x[]) () what does in indicate?

632

find the sum of two matrices and WAP for it.

Huawei,

620

Write a program with dynamically allocation of variable.

Atos Origin,

593


Post New C Questions

Un-Answered Questions { C }

How can I list all of the predefined identifiers?

566


Which header file should you include if you are to develop a function which can accept variable number of arguments?

795


Explain the properties of union. What is the size of a union variable

707


What is static memory allocation? Explain

620


What is multidimensional arrays

622






Is c# a good language?

596


What is d'n in c?

620


Describe the header file and its usage in c programming?

609


What is array within structure?

572


Who developed c language and when?

569


What is the meaning of && in c?

539


to find the closest pair

1812


What is the deal on sprintf_s return value?

629


What is ## preprocessor operator in c?

602


Why c is called a mid level programming language?

596