logo

Crowdly

Basic Programming

Looking for Basic Programming test answers and solutions? Browse our comprehensive collection of verified answers for Basic Programming at moodle.usthlearningsupport.vn.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

#include <stdio.h>

int main() {

char *cities[] = {"Hanoi", "LangSon", "PhuQuoc"};

int **i = &cities[0];

printf("%c\n", **i);

return 0;

}

What is the output?

0%
0%
100%
0%
View this question

What is the output of the following code?

    #include <stdio.h>

int main() {

unsigned char x = 255;

x += 10;

printf("%u", x);

return 0;

}

0%
100%
0%
0%
View this question

What will be the output of the following C program?

        #include 

int main() {

for (int i = 0; i < 5; i--) {

printf("%d ", i);

}

return 0;

}

0%
0%
0%
100%
View this question

What will happen when this code is executed?

        #include <stdio.h>

int main() {

printf("Hello\0World");

return 0;

}

0%
0%
100%
0%
View this question

What will be the output of the following code snippet?

#include <stdio.h>

int main() {

int a = 10;

int *ptr = &a;

printf("%d", *ptr);

return 0;

}

0%
100%
0%
0%
View this question
What does `malloc` return on failure?
0%
100%
0%
0%
View this question
Which of the following statements about pointers in C is true?
0%
0%
100%
0%
View this question
Which function correctly allocates a dynamic 2D array?
View this question
Which operator is used to access the members of a structure?
View this question

What is the output of the following C program?

        #include <stdio.h>

int main() {

printf("%zu", sizeof('A'));

return 0;

}

View this question

Want instant access to all verified answers on moodle.usthlearningsupport.vn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!