a=0;
b=(a=0)?2:3;
a) What will be the value of b? why
b) If in 1st stmt a=0 is replaced by -1, b=?
c) If in second stmt a=0 is replaced by -1, b=?
Answer Posted / ashwin kumar molugu
a)1st answer will be 3
in statement 1
b)if a=0 replaced with -1 its an error
in statement 2
c)if a=0 replaced with -1 2
answer is 2 becoz -1 is taken as true in c language
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How do we make a global variable accessible across files? Explain the extern keyword?
What is fflush() function?
What do you mean by c?
write a programming in c to find the sum of all elements in an array through function.
Explain bitwise shift operators?
How do we print only part of a string in c?
What is the method to save data in stack data structure type?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What are pointers? What are different types of pointers?
What is a string?
Explain how do you determine whether to use a stream function or a low-level function?
What are all different types of pointers in c?
Describe how arrays can be passed to a user defined function
What is c language and why we use it?
what are the facialities provided by you after the selection of the student.