C Interview Questions
Questions Answers Views Company eMail

what are the 10 different models of writing an addition program in C language?

641

biggest of two no's with out using if condition statement

5 3272

what is default constructor?

HCL,

2 1819




4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 2476

how to find anagram without using string functions using only loops in c programming

TCS, Mind Tree,

1 6368

How to removing white spces in c programming only bu using loops

2 2030

how to find anagram without using string functions using only loops in c programming

1853

#include int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

Sasken, Capital IQ,

12 10150




Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}

TCS, IBM,

11 6468

find largest of 3 no

8 5027

write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?

HCL,

5 9419

Is double link list a linear data structure? If Yes, Why?If No, Why?

4 9224

What is pre-emptive data structure and explain it with example?

2388

why we use pointer in c

HCL, TCS,

7 5459

how can i calculate mean,median,mode by using c program

HCL,

1 9109


Post New C Questions






Un-Answered Questions { C }

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.

978


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

460


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

630


code for quick sort?

762


Between macros and functions,which is better to use and why?

774






Explain the process of converting a Tree into a Binary Tree.

1048


how to print the character with maximum occurence and print that number of occurence too in a string given ?

1223


how to capitalise first letter of each word in a given string?

665


how can use subset in c program and give more example

685


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1737


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

638


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

9884


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1656


why return type of main is not necessary in linux

888


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

771