What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
Answer Posted / madhuri
here int i=-32 is not terminated so syntax error
if that statement was terminated then the answer would be
none in the given options because the output of the program
would be
pass1
pass2
pass2
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can we assign string to char pointer?
What is file in c language?
Why do we use static in c?
How can a process change an environment variable in its caller?
What is the best organizational structure?
How can you determine the size of an allocated portion of memory?
Give the rules for variable declaration?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
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.
What is sizeof int?
What is the role of && operator in a program code?
How can you find the day of the week given the date?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What are the uses of null pointers?