What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answer Posted / suchita
this is logically wrong bcoz we use relational opr in
conditional statements. and thats why he displays last
statements.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
When should you use a type cast?
What is the use of typedef in c?
What are formal parameters?
What is indirection? How many levels of pointers can you have?
Explain enumerated types.
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
what do the 'c' and 'v' in argc and argv stand for?
What is #error and use of it?
What is getche() function?
What are the types of functions 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 is the use of gets and puts?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What does the c preprocessor do?
How do we declare variables in c?