Programming in C - B2
Programming in C - B2
[9] CO4 K3
7.a Write the definition of the functions whose prototype is given below:
(a) int StringLength(char *s); / returns the length of the string.
(b) void StringConcatenate (char *s1, char *s2); //Concatenate string
s2 to sl.
(c) void StringCopy(char *s1,char *s2); /string s2 is copied to string sl
7.b (i)Write the pointer representation of a<illil
CO4 K3
(i) static int a[2][3]={{1, 2, 3},{4, 5, 6}}; int (*p)[3):
p=a; p++; printf(%d", *(*p+2);
(iii) char *s="ABCDEFGH":
OR
8.a Write a C program for copying the content of a text file to another file [7] COS K3
Course Outcomes
CO3: Utilize functions to find solutions to the computational problems by dividing it intoa number
of modules and abstract data types
CO4:Develop C programs using pointers for dynamic data handling.
CO5: Use files in Cto permanendy store and manipulate data.