C Interview Questions
Questions Answers Views Company eMail

What is the purpose of the statement: strcat (S2, S1)?

630

What is indirection? How many levels of pointers can you have?

Aspire, Infogain,

650

Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

Expedia,

690

Write a factorial program using C.

iNautix,

630

Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

TCS,

658

How to find a missed value, if you want to store 100 values in a 99 sized array?

Honeywell, Zomato,

803

Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

Aspiring Minds,

611

Write a code to remove duplicates in a string.

Expedia,

619

Why C language is a procedural language?

Ericsson,

608

Explain Basic concepts of C language?

EXL,

633

What is the use of function overloading in C?

Ittiam Systems,

661

Write the control statements in C language

Atos Origin,

637

Write a program to print all permutations of a given string.

JPMorgan Chase,

631

What is the purpose of macro in C language?

Fidelity,

653

Differentiate between Macro and ordinary definition.

Motorola,

716


Post New C Questions

Un-Answered Questions { C }

how should functions be apportioned among source files?

616


Why string is used in c?

569


What are the features of c languages?

613


Differentiate between the = symbol and == symbol?

695


Disadvantages of C language.

645






stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1836


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'); }

684


What's the best way of making my program efficient?

613


What is c language in simple words?

579


What does c in a circle mean?

567


Why is c so powerful?

667


What is a wrapper function in c?

571


What is #line used for?

568


Why is c called "mother" language?

847


What is const and volatile in c?

555