Answers:
Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
#include<stdio.h>
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
}
#include<stdio.h>
#include<conio.h>
void main()
{
char name[20]={'g','o','w','t','h','a','m','i'};
printf("Name =%s",name);
getch();
}
output :
Name=gowthami
#include<stdio.h>
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
}
#include<stdio.h>
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
}
#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'t','a','n','u'};
printf("the string is %s",name);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'t','a','n','u'};
printf("the string is %s",name);
getch();
}
#include<stdio.h>
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
#include<string.h>
int main()
{
char var name[]={'p','r','o','g','r','a','m'};
printf("The string is %s\n", varname);
return 0;
}
#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'s','h','a','i','k'};
printf("name=%s",name);
getch();
}
output
name=shaik
#include<stdio.h>
#include<conio.h>
void main()
{
char name[20]={'N','A','C','C','H','U'};
printf("Name =%s",name);
getch();
}
output :
Name=NACCHU
#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'L','A','M','E','E','S'};
printf("name=%s",name);
getch();
}
output:-
name=LAMEES
Login to add comment