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 |
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"
hi , please send me NIC written test papers to sbabavalli@gmail.com
Is main a keyword in c?
What is the meaning of c in c language?
Write a programme to find even numbers without using any conditional statement?
3 Answers ADD Software, Infosys,
What does %d do in c?
An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee
what is the hardware model of CFG( context free grammar)
What is the purpose of the statement: strcat (S2, S1)?
void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }
what is a function method?give example?