Ads Top

CHARACTER ARRAY PROGRAM USING CPP

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int a;
char b[80];
cout<<"enter name";
gets(b);
b[5]='\0';
cout<<b;
getch();
}



OUTPUT:
Enter name:  KIRAN
 KIRAN


No comments:

Touchfeeds. Powered by Blogger.