when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none
Answer Posted / naveen
o/p is x=0;
as x==x it will give 1 as result;
then again x==1;
so it will be false if x!=1i.e it will be true for only if
x value is 1.
i.e x=1 only if xis 1 other wise it is 0
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What are the different types of control structures?
Without Computer networks, Computers will be half the use. Comment.
What are the restrictions of a modulus operator?
What is static identifier?
What is difference between Structure and Unions?
Explain how do you declare an array that will hold more than 64kb of data?
What is output redirection?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are the general description for loop statement and available loop types in c?
How to define structures? ·
write a c program to find the sum of five entered numbers using an array named number
What is pointer to pointer in c?
What are the advantages of using macro in c language?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Write a program in c to replace any vowel in a string with z?