which of the following go out of the loopo if expn 2
becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}
Answers were Sorted based on User's Feedback
Answer / jai
c) Since expn2 becoming false will terminate do-while loop.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / bipin chandra sai.s
ans is d,bcoz d is only the loop statement in the option
| Is This Answer Correct ? | 0 Yes | 4 No |
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
In scanf h is used for
how do we remove the printed character in printf statement and write next it it
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
What is indirection?
what different between c and c++
why java is called as a purely oops language.
What is double pointer in c?
In a switch statement, what will happen if a break statement is omitted?
1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.
write a C program to print the program itself ?!