C Interview Questions
Questions Answers Views Company eMail

write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

IBM,

1775

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

Microsoft,

2025

write c program to display output 10(10+20)+(10+20+30)+ ... n term

Hindustan Gum Chemicals,

1725

write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1506

why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1505

what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

Microsoft,

6 6654

write a progrmm in c language take user interface generate table using for loop?

1563

Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 5 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

1 4147

main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }

2 3014

#include void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?

IIIT,

4 9371

Is it possible to run using programming C for Java Application?

NIC,

2 3534

write a c program to find reminder and quotient if one number is divided by other.to code this program don't use more than 2 variables

TCS,

2 4969

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 []);

TCS,

1832

write a programming in c to find the sum of all elements in an array through function.

1696

i got 75% in all semester am i eligible for your company

Infosys,

1725


Post New C Questions

Un-Answered Questions { C }

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

652


What is the difference between struct and union in C?

551


how many key words availabel in c a) 28 b) 31 c) 32

623


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1572


Here is a good puzzle: how do you write a program which produces its own source code as output?

587






What are preprocessor directives in c?

626


How can I swap two values without using a temporary?

602


Explain Function Pointer?

675


How can a number be converted to a string?

586


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

649


What are the similarities between c and c++?

588


Is c still used?

589


How to write a multi-statement macro?

610


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2256


What is the c value paradox and how is it explained?

565