Answer:
INPUT "Enter your marks in computer"<u><em>;</em></u>CS
<u><em>IF</em></u> C>40 THEN
PRINT "You are passed.
<u><em>"</em></u>
ELSE
PRINT "You are failed."
END <u><em>IF</em></u>
Explanation:
see corrections above.
Plagiarism is quite a bad thing because if you plagiarize, you are copying and pasting other people's work and using the work as yours (even though you change the sentence structure/ some words, it is still plagiarizing.) Fair use means un-biasness.
Void test(char *s)
{
int i, d;
sscanf(s, "%i", &i);
printf("%s converts to %i using %%i\n", s, i);
sscanf(s, "%d", &d);
printf("%s converts to %d using %%d\n", s, d);
}
int main()
{
test("123");
test("0x123");
return 0;
}
outputs:
123 converts to 123 using %i
123 converts to 123 using %d
0x123 converts to 291 using %i
0x123 converts to 0 using %d
As you can see, %i is capable of parsing hexadecimal, whereas %d is not. For printf they're the same.
Answer:
B
Explanation:
The point of simulating would be to eliminate the part of having to go through un patential applications and save time.