GE6151-Computer Programming PDF
GE6151-Computer Programming PDF
main()
{
float a;
int x=6, y=4;
a=(float) x/y;
printf(Value of a=%f,a);
}
(4+4+4+4=16)
3. Write a program in C to find whether the given string is palindrome or not without using
string functions.
(16)
4. Write a C program to count the number of characters, spaces, vowels, consonants and
(16)
others with using string functions.
5. Describe the following with suitable examples.
(i) Initializing a 2 Dimensional Array
(ii) Memory map of a Dimensional Array
6. Explain about the String Arrays and its manipulation in detail.
(8+8=16)
(16)
7. (i). Write a C program to find average marks obtained by a class of 30 students in a test. (10)
(ii).Write short notes on Reading and Writing string.
(6)
8. Write a C program to merge two sorted array into a single sorted array.
(16)
(16)
(16)