. 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 |
In a byte, what is the maximum decimal number that you can accommodate?
What is the size of enum in bytes?
Explain what is dynamic data structure?
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
why return type of main is not necessary in linux
I need a sort of an approximate strcmp routine?
What is dynamic dispatch in c++?
Explain enumerated types in c language?
WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"
What is a far pointer?What is the utility?
Can you please explain the difference between syntax vs logical error?
without using control structures and control structures find the max and min of given 2 nos