IGNOU, SMU and KSOU Bsc solved assignments – C++ Program Pointers

IGNOU, SMU and KSOU Bsc solved assignments – C++ Program Pointers

If you are BSc IT, Btech C/S, MCA or Msc computer science or Bsc computer science students and looking for solved assignments on C++ here is proper solution.

Below Program Pointers. It is solved assignment for IGNOU, SMU and KSOU Bsc IT or Computer science students and MCA students.

 

// Pointers.

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();

int a[]={1,2,3,4,5};
int i,*ptr;

ptr=a;

cout<<”\n Array values : “;
for(i=0;i<5;i++)
{
cout<<”\n\n Array :”<<a[i];
cout<<”\n Pointer : “<<*ptr;
ptr++;
}

getch();
}

All New Updates

Leave a Reply

Your email address will not be published. Required fields are marked *

Security Code: