C Interview Questions
Questions Answers Views Company eMail

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

5 5095

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

3 2372

write a string copy function routine?

2 2619

swap two integer variables without using a third temporary variable?


6 5184

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

1 1835

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

Infosys, TATA,

13 24151

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

TCS, Wipro, CTS,

9 8160

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

4 2418

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

2 5146

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

5 4513

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

4 4066

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

TCS, HCL, College School Exams Tests,

2 4783

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

1 2051

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


1 2687

What is the relation between # and include


5 4831

Post New C Questions

Un-Answered Questions { C }

difference between object file and executable file


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures


write a program to display all prime numbers


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?


Simplify the program segment if X = B then C ← true else C ← false


how to make a scientific calculater ?


What is the code for 3 questions and answer check in VisualBasic.Net?


Can you write the algorithm for Queue?


what are non standard function in c


what is the syallabus of computer science students in group- 1?


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping


what are # pragma staments?


code for quick sort?


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?