What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / vijay r15
In c non zero values
in if statement r
considered to be true
here if(i=6)
so it makes if(6)
hence its true
op is 7
if 1ly execute false
for if(0)
got it
r
mail to
raj.Vijay55@gmail.Com
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Differentiate fundamental data types and derived data types in C.
What is pointer to pointer in c language?
What is spaghetti programming?
What is a pointer on a pointer in c programming language?
If the size of int data type is two bytes, what is the range of signed int data type?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
How do you initialize pointer variables?
What does %2f mean in c?
Is exit(status) truly equivalent to returning the same status from main?
Where is c used?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is || operator and how does it function in a program?
What is meant by initialization and how we initialize a variable?
If null and 0 are equivalent as null pointer constants, which should I use?
What are preprocessor directives?