. 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


Please Help Members By Posting Answers For Below Questions

What is a void pointer? When is a void pointer used?

842


What are linker error?

852


What is a shell structure examples?

821


Is main an identifier in c?

857


What is calloc in c?

897


How do you define a function?

795


When can a far pointer be used?

784


How is actual parameter different from the formal parameter?

805


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

885


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1006


Is null always defined as 0(zero)?

834


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.

5120


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2125


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

832


Discuss the function of conditional operator, size of operator and comma operator with examples.

909