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 |
Explain what is the benefit of using an enum rather than a #define constant?
write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4
What do you mean by c what are the main characteristics of c language?
can any one tel me wt is the question pattern for NIC exam
Why is the code below functioning. According to me it MUST NOT.
Explain how can I read and write comma-delimited text?
develop algorithms to add polynomials (i) in one variable
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.
What is null pointer in c?
Is Exception handling possible in c language?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is a void * in c?