What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / mahendra giri
y will be 7 because in the if condition we have assigned
value 6 on x not ==,so ans of
y =7
| Is This Answer Correct ? | 40 Yes | 2 No |
Post New Answer View All Answers
What is unsigned int in c?
Can we change the value of #define in c?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What are header files and what are its uses in C programming?
Tell me when would you use a pointer to a function?
Differentiate Source Codes from Object Codes
difference between Low, Middle, High Level languages in c ?
main() { printf("hello"); fork(); }
What is difference between && and & in c?
What are the advantages and disadvantages of c language?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is the meaning of c in c language?
What is a structure in c language. how to initialise a structure in c?
Why does everyone say not to use gets?
Is a pointer a kind of array?