GATE CSE C Programming Practice Test – Array & Pointer | Set 1

Questions 96-100 of 100

Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 96

NAT · Numerical Answer 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int arr[] = {11, 55, 30, 40};
    int *p = arr;
    printf("%d", *(p + 1) - *p);
    return 0;
}
Answers for question 96

Question 97

NAT · Numerical Answer 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int arr[] = {12, 60, 30, 40};
    int *p = arr;
    printf("%d", *(p + 1) - *p);
    return 0;
}
Answers for question 97

Question 98

NAT · Numerical Answer 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int arr[] = {13, 65, 30, 40};
    int *p = arr;
    printf("%d", *(p + 1) - *p);
    return 0;
}
Answers for question 98

Question 99

NAT · Numerical Answer 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int arr[] = {14, 70, 30, 40};
    int *p = arr;
    printf("%d", *(p + 1) - *p);
    return 0;
}
Answers for question 99

Question 100

NAT · Numerical Answer 1 mark

What is the output of the following C program?

C
#include <stdio.h>
int main(void) {
    int arr[] = {15, 75, 30, 40};
    int *p = arr;
    printf("%d", *(p + 1) - *p);
    return 0;
}
Answers for question 100
Scroll to Top