C Interview Questions
Questions Answers Views Company eMail

what is output of the following statetment?Printf(“%x”, -1<<4); ?

5 7400

will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);

3 4233

write a string copy function routine?

2 3994

swap two integer variables without using a third temporary variable?

Persistent,

6 8155

how do you redirect stdout value from a program to a file?

1 2850

write a program that finds the factorial of a number using recursion?

Infosys, TATA,

13 29713

write a “Hello World” program in “c” without using a semicolon?

CTS, TCS, Wipro,

9 11867

Give a method to count the number of ones in a 32 bit number?

4 4322

write a program that print itself even if the source file is deleted?

2 6905

Given an unsigned integer, find if the number is power of 2?

5 7012

what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?

4 6277

differentiate between const char *a; char *const a; and char const *a;

College School Exams Tests, HCL, TCS,

2 6466

Why cann't whole array can be passed to function as value.

1 3128

Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?

Oracle,

1 3824

What is the relation between # and include

HCL,

5 7126


Post New C Questions

Un-Answered Questions { C }

If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

766


What is identifiers in c with examples?

665


What is the heap?

671


How can I delete a file?

615


How many types of sorting are there in c?

594






What is nested structure?

562


How can you return multiple values from a function?

618


Is c compiled or interpreted?

652


What is nested structure in c?

596


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2441


What is wrong with this declaration?

603


How many keywords are there in c?

578


Write a program of prime number using recursion.

606


how to construct a simulator keeping the logical boolean gates in c

1713


What happens if a header file is included twice?

576