#include <stdio.h>
#include <stdlib.h>
#include<ctype.h>
void main()
{
char str[50];
int i=0;
printf("enter the string: ");
fgets(str,sizeof(str),stdin);
printf("the abbrevation of string is");
printf("%c",toupper(str[i]));
for(i=0;str[i]!='\0';i++)
{
if(str[i]== '')
{
i++;
printf("%c",toupper(str[i]));
}
}
}
error at line 14
rithish 13 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.