Lecture 159
//Procedures and Functions
//Code:
#include <iostream>
#include <conio.h>
using namespace std;
void display(char*);
// Prototype
main ()
{
char
name[]={"Shahid"};
display(name);
getch();
return 0;
}
void display(char name[])
{
cout<<"Your
name is : ";
int i=0;
while(name[i] !=
'\0')
{
cout<<name[i];
i++;
}
}