Are there any problems with performing mathematical operations on different variable types?
No Answer is Posted For this Question
Be the First to Post Answer
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 Answers Vector, Vector India,
what is stack , heap ,code segment,and data segment
What is getch() function?
void main() { int i=5; printf("%d",i++ + ++i); }
write a c program to store and print name,address,roll.no of a student using structures?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
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
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
Explain how can I prevent another program from modifying part of a file that I am modifying?
Write a C program to perform some of the operation which can be performed using Single linked list
Why header file is used in c?