saving . . . saved Strings has been deleted. Strings has been hidden .
Strings
Title
Question
#include<stdio.h>
#include<string.h>
int main()
{
  char varname[]={'p','r','o','g','r','a','m'};
  printf("The string is %s\n", varname);
  return 0;
}


Naveen VP

C-and-Cpp Strings 04-05 min 10-20 sec 06-12-21, 10:31 p.m. naveenpalanisamy142002@gmail.com

Answers:

Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
10-01-22, 3:41 p.m. hbammkanti


#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;
}


12-08-24, 3:19 p.m. Nikki5D4


#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
12-08-24, 4:02 p.m. 238T1A05D9


#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;
}
12-08-24, 4:07 p.m. tanmayi.P


#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;
}
12-08-24, 4:07 p.m. 238T1A05D3


#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'t','a','n','u'};
printf("the string is %s",name);
getch();
}

12-08-24, 4:14 p.m. 238T1A05D8


#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'t','a','n','u'};
printf("the string is %s",name);
getch();
}
16-08-24, 5:06 p.m. 238T1A05F5


#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;
}


19-08-24, 2:21 p.m. Shalini_09


#include<stdio.h>
#include<conio.h>
void main()
{
char name[10]={'s','h','a','i','k'};
printf("name=%s",name);
getch();
}

output
name=shaik
19-08-24, 2:30 p.m. 238T1A05G7


#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
19-08-24, 3:25 p.m. nasreensk2005@gmail.com


#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
19-08-24, 4:03 p.m. 238T1A05G1


Log-in to answer to this question.