C Interview Questions
Questions Answers Views Company eMail

What is Bitwise Operator and how it works?

2192

is assignment operator is arithmatic or not

3042

What is the difference between test design and test case design?

867

void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }

15152

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?

TCS,

4129

int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?

6619

WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

13221

Why can't we initialise member variable of a strucutre

1767

what is bit rate & baud rate? plz give wave forms

819

what are bps & baud rates? differentiate these two?

TCS,

2581

write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

2498

write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)

65119

write a program to create a sparse matrix using dynamic memory allocation.

3593

What are the different types of pointers?

HCL, TCS,

4678

in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

9795

Un-Answered Questions { C }

Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

2910

how is the examination pattern?

916

write a program using linked list in which each node consists of following information. Name Branch Rollno Telephone no i) Write the program to add information of students in linked list

1504

Can you think of a logic behind the game minesweeper.

1030

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

831

code for quick sort?

894

to find the closest pair

1070

The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - \$45,000 = 0.15 x income \$45,001 - \$90,000 = 6750 + 0.20 x (income – 45000) \$90,001 - \$140,000 = 15750 + 0.26 x (income – 90000) \$140,001 - \$200,000 = 28750 + 0.29 x (income – 140000) Greater than \$200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

299

how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

820

how we can make 3d venturing graphics on outer interface

2878

What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

768

write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1072

what is the structure pointer?

973

code for replace tabs with equivalent number of blanks

851

what is stack , heap ,code segment,and data segment

1564