. 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 |
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Can you apply link and association interchangeably?
Is c++ based on c?
why array index always starts from zero??
What is the difference between union and structure in c?
Explain what is a static function?
What is the heap in c?
What does 1f stand for?
Why the use of alloca() is discouraged?
What are the 5 organizational structures?
Explain output of printf("Hello World"-'A'+'B'); ?