string example in both forms .
#include<stdio.h>
#include<conio.h>
main()
{
char a[6]= {'r','a','h','u','l','\0'};
char b[5] = "IIPS";
printf("student name %s",a);
printf(" \nhe is from %s",b);
}
student name rahul
he is from IIPS
This blog is for basic programming tutorial. Mostly programs of c and c++ programming are available here .
Comments
Post a Comment