Шукаєте відповіді та рішення тестів для Coding Café ? Перегляньте нашу велику колекцію перевірених відповідей для Coding Café в dle.plaksha.edu.in.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
while (ch = getchar() != EOF) putchar(ch);
Can you help the programmer fix the bug by rewriting the code? Explain briefly.
The following code segment written by a beginner in C does not work as expected. However, there is no compilation error. Can you spot the bug and rewrite the piece of code so it is bug-free? Explain briefly why the bug arose.
int
x = 5;
if (x = 0) printf("Zero\n");else
printf("Non-zero\n
");
The memory location where the last element of a five-element array is stored can be obtained by using &arr[5].
Typing what on the keyboard signals EOF (end of file) when a C program is taking data from the user?
The user-defined function used by the program takes a float number as an argument and returns nothing.
Consider the piece of code:
for (i = 1, sum = 0; i <= 5; i++) sum += i * i;Which of the following statements is true?
A line such as #define MAX 4 that appears in a C program is: