Шукаєте відповіді та рішення тестів для Basic Programming? Перегляньте нашу велику колекцію перевірених відповідей для Basic Programming в moodle.usthlearningsupport.vn.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
What is the output of the following code?
#include <stdio.h>#define SQUARE(x) x*x
int main() {
int a = 3;
printf("%d", SQUARE(a+1));
return 0;
}
What will happen when this program runs?
#include <stdio.h>int main() {
int i = 5;
for (; i >= 0; i--) {
printf("%d ", i);
i++;
}
return 0;
}
What will be the output of the following code?
#include <stdio.h>
void main() {
char str[] = "Hello";
printf("%c", str[6]);
}
What will be the output of the following C code?
#include <stdio.h>int main() {
int x = 2, y = 5;
printf("%d", x & y);
return 0;
}
#include <stdio.h>
void main() {
int x = 5;
if (x < 1)
printf("hello");
if (x == 5)
printf("hi");
else
printf("no");
}
What is the output?
What does the following code print?
#include <stdio.h>#define SQUARE(x) x*x
int main() {
printf("%d", SQUARE(4+1));
return 0;
}
What will be the output of the following C program?
#include <stdio.h>
void main() {
int arr[] = {1, 2, 3, 4, 5};
printf("%d", *(arr + 2));
}
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!