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!

What will be the output of the following C program?

        #include  <stdio.h>

int main() {

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

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

return 0;

}

0%
0%
0%
View this question
Which library function is used to compare two strings in C?
View this question

#include <stdio.h>

int main() {

    char str[] = "Hello";

    printf("%c", *(str+1));

    return 0;

}

View this question
Which storage class in C is used to declare global variables?
View this question
What happens when trying to access arr[100][100] in an array of size [10][10]?
View this question

What will happen if you run the following code?

#include <stdio.h>

void recurse() {

recurse();

}

int main() {

recurse();

return 0;

}

View this question

#include <stdio.h>

int main() {

int a = 1;

if (a--)

printf("True");

if (a++)

printf("False");

return 0;

}

What is the output?

View this question

What is the output of the following C code?

#include <stdio.h>

int main() {

int x = 10;

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

return 0;

}

0%
100%
0%
View this question

What will be the output of the following code?

#include <stdio.h>

int main() {

int arr[] = {10, 20, 30, 40};

int *p = arr;

printf("%d %d %d", *p, *(p++), *p);

return 0;

}

0%
0%
100%
View this question
Which of the following loops executes at least once?
View this question

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

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