Questions ListCategory: cExplain the ouput of c program
fosscom asked 10 months ago




Explain the output of following code:

#include<iostream> 
using namespace std; 

int main() {

 int a[2][2] = { 1,2,3,4}; 
 int *ptr = *a; 
 cout << (*(ptr+1)) <<endl; 
 return 0;

 



Related Contents to follow