. 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
What is the explanation for modular programming?
If fflush wont work, what can I use to flush input?
What does *p++ do?
What are the differences between Structures and Arrays?
Why do we need arrays in c?
What are the 5 types of organizational structures?
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.
State the difference between x3 and x[3].
How can I change the size of the dynamically allocated array?
Explain what are multidimensional arrays?
Differentiate between ordinary variable and pointer in c.
What does void main () mean?
What is the difference between functions abs() and fabs()?
Explain what is the best way to comment out a section of code that contains comments?
Explain what are compound statements?