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;
}
#include <stdio.h>
int main() {
char str[] = "Hello";
printf("%c", *(str+1));
return 0;
}
What will happen if you run the following code?
#include <stdio.h>
void recurse() {
recurse();
}
int main() {
recurse();
return 0;
}
#include <stdio.h>
int main() {
int a = 1;
if (a--)
printf("True");
if (a++)
printf("False");
return 0;
}
What is the output?
What is the output of the following C code?
#include <stdio.h>int main() {
int x = 10;
printf("%d %d", x++, ++x);
return 0;
}
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;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!