CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
Advertisements
C Interview Questions

Below we have listed all the C Interview Questions and answers. Feel free to comment on any C Interview Questions or answer by the comment feature available on the page.

To buy an eBook containing 30,000 Interview Questions, with Answers, Click Here.
View All C Interview Questions & Answers - Exam Mode / Learning Mode

C is a high-level and general purpose programming language that is ideal for developing firmware or portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System (OS) in the early 1970s. With the increasing popularity of object-oriented programming, C is being rapidly replaced as "the" programming language by C++, a superset of the C language that uses an entirely different set of programming concepts, and by Java, a language similar to but simpler than C++, that was designed for use in distributed networks.

Highly Recommended, Hand Picked C Books


Subcategories for C Interview Questions & Answers :-

Following are sub categories for which Interview Questions & Answers are available under C Interview Questions & Answers. Please select the appropriate sub-category:-

Arrays in C Interview Questions & Answers (18) Exam Mode | Learning Mode

Branches & Loops in C Interview Questions & Answers (22) Exam Mode | Learning Mode

C Basics Interview Questions & Answers (92) Exam Mode | Learning Mode

Dynamic Memory Allocation in C Interview Questions & Answers (21) Exam Mode | Learning Mode

File Operations in C Interview Questions & Answers (16) Exam Mode | Learning Mode

Functions in C Interview Questions & Answers (59) Exam Mode | Learning Mode

Operators in C Interview Questions & Answers (22) Exam Mode | Learning Mode

Pointers in C Interview Questions & Answers (43) Exam Mode | Learning Mode

Strings in C Interview Questions & Answers (32) Exam Mode | Learning Mode

Structures in C Interview Questions & Answers (39) Exam Mode | Learning Mode

Variables in C Interview Questions & Answers (39) Exam Mode | Learning Mode

Previous 1 2 3 4 5 6 7 8 Next

Sort By : Latest First | Oldest First | By Rating

Question
Rating
View Answer
main()
{
int i, j;
scanf("%d %d"+scanf("%d %d", &i, &j));
printf("%d %d", i, j);
}


2.9 Rating
View Answer
main()
{
char *p = "hello world";
p[0] = 'H';
printf("%s", p);
}


2.5 Rating
View Answer

main()
{
char * strA;
char * strB = I am OK;
memcpy( strA, strB, 6);
}





























3.0 Rating
View Answer
const int perplexed = 2;
#define perplexed 3
main()
{
#ifdef perplexed
#undef perplexed
#define perplexed 4
#endif
printf("%d",perplexed);
}


3.1 Rating
View Answer
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);
}


4.5 Rating
View Answer
main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcat(a,b));
}


3.0 Rating
View Answer
main()
{
char *a = "Hello ";
char *b = "World";
clrscr();
printf("%s", strcpy(a,b));
}


3.1 Rating
View Answer
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);
}


3.5 Rating
View Answer
main()
{
printf("%d, %d", sizeof('c'), sizeof(100));
}


3.0 Rating
View Answer
main()
{
int i = 100;
clrscr();
printf("%d", sizeof(sizeof(i)));
}


3.8 Rating
View Answer
main()
{
int c = 5;
printf("%d", main||c);
}


3.0 Rating
View Answer
main()
{
char c;
int i = 456;
clrscr();
c = i;
printf("%d", c);
}


4.0 Rating
View Answer
void main ()
{
int x = 10;
printf ("x = %d, y = %d", x,--x++);
}


3.1 Rating
View Answer
main()
{
int i =10, j = 20;
clrscr();
printf("%d, %d, ", j-- , --i);
printf("%d, %d ", j++ , ++i);
}


4.5 Rating
View Answer
main()
{
int x=5;
clrscr();
for(;x==0;x--) {
printf("x=%dn?", x--);
}
}


4.9 Rating
View Answer
main()
{
int x=5;
for(;x!=0;x--) {
printf("x=%dn", x--);
}
}


3.3 Rating
View Answer
main()
{
int x=5;
clrscr();
for(;x<= 0;x--)
{
printf("x=%d ", x--);
}
}


3.4 Rating
View Answer
main()
{
{
unsigned int bit=256;
printf("%d", bit);
}
{
unsigned int bit=512;
printf("%d", bit);
}
}


3.9 Rating
View Answer
main()
{
int i;
clrscr();
for(i=0;i<5;i++)
{
printf("%dn", 1L << i);
}
}


4.1 Rating
View Answer
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%dn", bit = (bit >> (i - (i -1))));
}
}


4.6 Rating
View Answer

Previous 1 2 3 4 5 6 7 8 Next

India News Network
Latest 20 Questions
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
"Holiday Packages" announced as an advertisement are an example of _________: (a) Offer (b) Counter Offer (c) Invitation to Offer (d) None of the above
A match fixing contract between a player and a broker is a: (a) Valid Contract (b) Unenforceable Contract (c) Void Contract (d) Illegal Contract
When a bookseller sells a book on cash payment then it is called as ___________: (a) Unilateral Contract (b) Bilateral Contract (c) Executed Contract (d) Executory Contract
____________ agreements are created by situation: (a) Written (b) Oral (c) Void (d) Implied
Cache = 0.03125 Seconds