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 does int main () mean?
What is the data segment that is followed by c?
What is the use of structure padding in c?
What are variables c?
Is array name a pointer?
What is the difference between āgā and āgā in C?
Can you please explain the difference between exit() and _exit() function?
can we implement multi-threads in c.
Explain how does free() know explain how much memory to release?
Can a pointer point to null?
List the variables are used for writing doubly linked list program.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Disadvantages of C language.