. 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 |
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Without Computer networks, Computers will be half the use. Comment.
/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf(); printf("%d",r); getch(); }
What is the difference between procedural and declarative language?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How old is c programming language?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Explain how do you view the path?
Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
what is the difference between procedure oriented and object oriented progaming language
program to find the ASCII value of a number
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,