C Interview Questions
Questions Answers Views Company eMail

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?

Finite Infotech, Lovely Professional University, Wipro,

6 27928

WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 14220

WAP to accept first name,middle name & last name of a student display its initials?

AITH, NIIT,

5 19579

Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(“%c”, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.

BladeLogic, Infosys,

1 10736

who did come first hen or agg

Infosys,

15 15265

what is the function of .h in #include in c ?

HCL, IBM, Wipro,

23 35207

what is the difference between #include and #include"stdio.h" ?

TCS,

6 28063

main() { printf("hello%d",print("QUARK test?")); }

5 6827

main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 6570

#define f(x) main() { printf("\n%d",f(2+2)); }

5 7006

what is the function of void main()?

8 27565

write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview

Satyam, UNIS, Wipro,

2 13110

what is the difference between normal variables and pointer variables..............

HP, Infosys, Satyam, Vivekanand Education Society,

15 68691

what is a static function

Satyam,

10 11640

hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

Aegis, CDAC, Infosys,

2041


Post New C Questions

Un-Answered Questions { C }

void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1381


What is the difference between pure virtual function and virtual function?

768


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1973


why return type of main is not necessary in linux

1809


Difference between goto, long jmp() and setjmp()?

859






What is queue in c?

686


develop algorithms to add polynomials (i) in one variable

1865


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.

2557


Explain which function in c can be used to append a string to another string?

731


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.

1184


What is wrong with this initialization?

696


Explain what does the format %10.2 mean when included in a printf statement?

991


Explain null pointer.

738


Differentiate between ordinary variable and pointer in c.

766


Can a variable be both const and volatile?

806