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,

1878

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

Microsoft,

2125

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

Hindustan Gum Chemicals,

1824

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.

1624

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

1609

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 7094

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

1665

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 4335

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

2 3218

#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 9899

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

NIC,

2 3763

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 5207

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,

1947

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

1807

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

Infosys,

1837


Post New C Questions

Un-Answered Questions { C }

Write a program to generate random numbers in c?

749


When should the register modifier be used? Does it really help?

697


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

885


What are external variables in c?

655


What is the significance of scope resolution operator?

975






List out few of the applications that make use of Multilinked Structures?

1477


What are pointers? What are stacks and queues?

659


Can I initialize unions?

701


Explain how do you list files in a directory?

719


What is line in c preprocessor?

698


Can you tell me how to check whether a linked list is circular?

900


Is c is a middle level language?

696


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1308


What is chain pointer in c?

691


Are pointers really faster than arrays?

661