C Interview Questions

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

IBM,

1053

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

1258

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

1064

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.

778

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

669

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); }

3648

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

792

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.

2638

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

1727

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

5163

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

NIC,

2026

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,

3327

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,

971

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

943

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

1001

how to construct a simulator keeping the logical boolean gates in c

806

hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

683

787

Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1054

Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

566

write a program to print largest number of each row of a 2D array

1116

regarding pointers concept

766

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

748

why we wont use '&' sing in aceesing the string using scanf

1015

if p is a string contained in a string?

672

what is the syallabus of computer science students in group- 1?

1057

find out largest elemant of diagonalmatrix

824

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

759

what is used instead of pointers in java than c?

333