. Write a program to get a string and to convert the 1st
letter of it to uppercase
Answer Posted / 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 |
Post New Answer View All Answers
What is a void pointer? When is a void pointer used?
What are linker error?
What is a shell structure examples?
Is main an identifier in c?
What is calloc in c?
How do you define a function?
When can a far pointer be used?
How is actual parameter different from the formal parameter?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Is null always defined as 0(zero)?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Discuss the function of conditional operator, size of operator and comma operator with examples.