#define FALSE -1
#define TRUE 1
#define NULL 0
main()
{
if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}
Answer / sorab aggarwal
print TRUE becoz
if condition false when it 0 and if any other value occurs it is true ..
if(0)
puts("NULL"); //false this condition
else if(-1)
puts("TRUE"); //true this condition
else
puts("FALSE");
| Is This Answer Correct ? | 27 Yes | 5 No |
Can you write the algorithm for Queue?
0 Answers College School Exams Tests, TCS,
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
write a program for 7*8 = 56 ? without using * multiply operator ? output = 56
Which is better pointer or array?
How do you do dynamic memory allocation in C applications?
which is an algorithm for sorting in a growing Lexicographic order
The statement, int(*x[]) () what does in indicate?
Explain what are binary trees?
Why should I use standard library functions instead of writing my own?
What is a memory leak in structures? How can we rectify that?
What is the purpose of type declarations?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university