. Write a program to get a string and to convert the 1st
letter of it to uppercase

Answer Posted / kiran

void main()
{
char str[20];
int i=0;
printf("Enter your name : ");
gets(name);
if(str[i] >= 97 && str[i]<=122)
str[i] = str[i] - 32;
printf("The new String is %s",str);
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the explanation for modular programming?

685


If fflush wont work, what can I use to flush input?

615


What does *p++ do?

586


What are the differences between Structures and Arrays?

609


Why do we need arrays in c?

583






What are the 5 types of organizational structures?

550


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1497


State the difference between x3 and x[3].

650


How can I change the size of the dynamically allocated array?

632


Explain what are multidimensional arrays?

603


Differentiate between ordinary variable and pointer in c.

617


What does void main () mean?

733


What is the difference between functions abs() and fabs()?

649


Explain what is the best way to comment out a section of code that contains comments?

720


Explain what are compound statements?

605