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,

1006

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

Microsoft,

1223

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

Hindustan Gum Chemicals,

1015




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.

743

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

634

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 3547

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

769

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 2549




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

2 1664

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

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

NIC,

2 1970

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 3238

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,

937

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

912

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

Infosys,

966


Post New C Questions






Un-Answered Questions { C }

pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

1350


Why is it important to memset a variable, immediately after allocating memory to it ?

743


what is ur strangth & weekness

988


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1010


which is an algorithm for sorting in a growing Lexicographic order

585






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

649


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.

1658


Write the test cases for checking a variable having value in range -10.0 to +10.0?

882


how could explain about job profile

680


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

8064


What is the code for 3 questions and answer check in VisualBasic.Net?

915


all c language question

942


what do u mean by Direct access files? then can u explain about Direct Access Files?

882


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

726


What is the difference between if else and switchstatement

479