What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
Answers were Sorted based on User's Feedback
Answer / manjunath a s
it will be in infinite loop because x=6 is an assignment
statement and it will be always true.
| Is This Answer Correct ? | 1 Yes | 6 No |
Answer / vikraman85
compile time err wil occur..
Have 2 use == opr..
| Is This Answer Correct ? | 3 Yes | 11 No |
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
What is that continue statement??
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is the use of keyword VOLATILE in C?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Can the curly brackets { } be used to enclose a single line of code?
Define the scope of static variables.
for(;;) printf("C language") What is out put of above??
2 Answers Practical Viva Questions,
how to find the sizof of any datatype using bit manipulations
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
What is array of pointers to string?