Professional Documents
Culture Documents
The Figure in The Margin Indicate Full Marks Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
The Figure in The Margin Indicate Full Marks Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
The Figure in The Margin Indicate Full Marks Candidates Are Required To Give Their Answers in Their Own Words As Far As Practicable
CMSA
CC-2
Full Marks-30
#include<stdio.h>
void main()
{
char *p=”UNIVERSITY”
printf(“%c”,++*(p++));
getch();
}
(g).what will be the output of the following code
#include<stdio.h>
void main()
{
char str[]=”COMPUTER”
int i=0;
n=strlen(str);
while(n)
n--;
str[i]=str[n];
i++;
printf(“%s”,str);
(b) Write a program code in C language to find out factorial of a given number
using recursion 2+4
(b) If an array is passed to a function and some of its elements are modified by
the function, are these alterations be identified in the parent program? Explain.
3+3
char *city=”Madras”;
6) a)Write down the differences between structure and union with suitable
example.
library function. 6
(1.5+1.5)+3