Saturday, 10 April 2021

Pointer in C and C++ Qus 8

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

int main()

{

clrscr();

int A[2][4]={3,6,9,12,15,18,21,24};

cout<<-A[1][2]<<endl<<-2[1[A]];

cout<<endl<<A[1]<<endl<<*(A+1)<<endl;

cout<<*(A[1]+2)<<endl<<*(*(A+1)+2);



getch();

return 0;

}

No comments:

Post a Comment