. Write a program to get a string and to convert the 1st
letter of it to uppercase
Answers were Sorted based on User's Feedback
Answer / darshana
Dim str As String
Dim ch() As Char
Console.WriteLine("enter a string")
str = Console.ReadLine()
ch = str.ToCharArray
Console.Write(Char.ToUpper(ch(0)))
For i As Integer = 0 To ch.GetUpperBound(0) - 1
Console.Write(ch(i + 1))
Next
Console.WriteLine()
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Explain is it better to bitshift a value than to multiply by 2?
Write a C program to read the internal test marks of 25 students in a class and show the number of students who have scored more than 50% in the test. Make necessary assumptions.
What is c programing language?
What does dm mean sexually?
What is adt in c programming?
What are data types in c language?
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
Is c pass by value or reference?
prototype of sine function.
In header files whether functions are declared or defined?
to find the program of matrix multiplication using arrays
writw a program to insert an element in the begning of a doubly linked list