write a program in aaray to display your name
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
1. #include<stdio.h> #include<string.h> void main() { int i,h; char a[10],b[10],c[10]; printf("Enter your first name\n"); scanf("%s",&a[i]); ...
2. #include <iostream> #include <string> using namespace std; int main(){ string adS="Robert Brett Roser"; char a; for(int i=0;i<adS.rfind(' '); i++){ for(a=65; a<=90;a++){
Answer:
#include<stdio.h>
#include<string.h>
void main()
{
int i,h;
char a[10],b[10],c[10];
printf("Enter your first name\n");
scanf("%s",&a[i]);
printf("enter your middle name\n");
scanf("%s",&b[i]);
printf("Enter your last name\n");
scanf("%s",&c[i]);
printf("Displaying your name\n");
printf("%c",a[0]);
printf(".");
printf("%c",b[0]);
h=strlen(c);
for(i=0;i<=h;i++)
{
printf("%c",c[i]);
}
}