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
In C language what is a 'dangling pointer'?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is the function of volatile in c language?
What are the 4 types of unions?
program to convert a integer to string in c language'
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Explain how can you tell whether two strings are the same?
What are the different data types in C?
What is .obj file in c?
Where local variables are stored in c?
Should a function contain a return statement if it does not return a value?
What are pragmas and what are they good for?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none