What is the output of the following C program?
[gamipress_button type=”submit” label=”Run Code Online” onclick=”window.open(‘https://coderseditor.com’,’_blank’)”]
#include<stdio.h> int main() { int a[2][3] = {2,1,3,2,3,4}; printf("Using pointer notations:\n"); printf("%d %d %d\n", *(*(a+0)+0), *(*(a+0)+1), *(*(a+0)+2)); printf("Using mixed notations:\n"); printf("%d %d %d\n", *(a[1]+0), *(a[1]+1), *(a[1]+2)); return 0; }
Studently Answered question October 10, 2022
Output:
Using pointer notations:
2 1 3
Using mixed notations:
2 3 4
Studently Answered question October 10, 2022