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!

How do you correctly declare a pointer to a 2D array?
100%
0%
0%
0%
View this question

What is the output of the following C code?

#include <stdio.h>

int main() {

char str[] = "Hello";

str[0] = 'J';

printf("%s", str);

return 0;

}

100%
0%
0%
0%
View this question

What happens when the following C code runs?

        #include <stdio.h>

int main() {

int i = 5;

printf("%d", i+++++i);

return 0;

}

0%
100%
0%
0%
View this question

What will the following C code print?

#include <stdio.h>

int main() {

unsigned int x = 4294967295;

printf("%u", x + 1);

return 0;

}

100%
0%
0%
0%
View this question
#include

int main() {

int arr[2][2] = {{1, 2}, {3, 4}};

printf("%d", arr[3][3]);

return 0;

}

100%
0%
0%
0%
View this question
Which of the following is a correct format for declaration of function?
0%
0%
0%
0%
View this question

#include <stdio.h>

int main() {

int x = 10;

printf("%d, %d, %d\n", x<1, x=100, x>=10);

return 0;

}

What is the output?

0%
100%
0%
0%
View this question
Which of the following is not a valid storage class in C?
View this question

What will be the output of the following C program?

        #include <stdio.h>

int main() {

int a = 5, b = 10;

int *p1 = &a, *p2 = &b;

*p1 = *p2;

printf("%d %d", a, b);

return 0;

}

100%
0%
0%
0%
View this question
Which of the following correctly declares a 2D array in C?
0%
100%
0%
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!