?
2012-02-15 23:06:59 UTC
(b) Write a program in C for showing working of different logical operator in C.
Your program should guide users with proper message/menu on the console.
(c) Write a function to find the area of a triangle whose length of three sides is given.
(a) Write a C program to print the following triangle:
*
***
*****
*******
*********
************
(b) Write a C program to read the internal test marks of 25 students in a class and
show the number of students who have scored more than 50% in the test.
Make necessary assumptions.
3)
(a) What is calling by reference? How it is different from call by value?
Write a C function to swap two given numbers using call by
reference mechanism.
(b) Write a C program for addition of two 3×3 matrices.
(c) Write a C program for finding GCD of two given numbers.
4)
(a) Write C programme for followings:
i) Counting the number of words in a given string
ii) Concatenating two given strings
(2×5 =10 Marks)
(b) What is a pointer? Explain pointer arithmetic with example. Also explain use of malloc function in C programming with an example (10 Marks)
5)
(a) Explain recursion. Also write a C program for Tower of Hanoi problem with
a example of 4 disks . (10 Marks)
(b) Write a C program using structure to find students grades in a class.
Make the necessary assumptions.