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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments

6 Answers   TCS,


why i join syntel?

23 Answers   ABC, Syntel, TCS,


A program to write a number of letters and numbers, such as counting and display

0 Answers  


Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 Answers  


an algorithem for the implementation of circular doubly linked list

1 Answers  






int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(“%d”,*(*(x+1)+3));

2 Answers   Wipro,


for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????

8 Answers  


What are qualifiers?

0 Answers  


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

0 Answers  


Why preprocessor should come before source code?

2 Answers  


Is it possible to execute code even after the program exits the main() function?

0 Answers  


Question 1: You want to conduct a survey within your classroom, on the quality of canteen’s food. You ask each of your class fellows to rank the quality of food between 1 and 5 (1 representing excellent quality and 5 representing worst quality). During the survey, you make a list containing the roll# of student and the opinion given by that student. The list can be as follow Roll # Opinion 234 1 235 1 236 5 237 1 238 2 239 3 240 5 241 5 242 1 To get the results of the survey, you need to determine the frequency of each opinion value. The frequency of an opinion is determined by counting the number of students giving that opinion. For example, for the above list the frequency of opinion value 1 is 4 and frequency of opinion value 4 is 0. After getting the frequency of each opinion, you can easily judge about the quality of the food by seeing through the frequency of each opinion. You need to develop a program to calculate the results of this survey. The program inputs the opinion of 50 students and counts the frequency of each opinion. It then displays a report showing the frequency of each opinion. Sample output: Opinion Frequency Remarks 1 5 Excellent 2 10 Good 3 15 Normal 4 10 Bad 5 10 Really bad

1 Answers  


Categories