KCA102 Assignment-3
KCA102 Assignment-3
Assignment-3
Subject Name: PROBLEM SOLVING USING C Subject Code: KCA 102
UNIT -3
Arrays: Array notation and representation, Declaring one-dimensional array, Initializing arrays,
Accessing array elements, Manipulating array elements, Arrays of unknown or varying size,
Two-dimensional arrays, Multidimensional arrays.
Pointers: Introduction, Characteristics, * and & operators, Pointer type declaration and
assignment, Pointer arithmetic, Call by reference, Passing pointers to functions, array of pointers,
Pointers to functions, Pointer to pointer, Array of pointers.
Strings: Introduction, Initializing strings, Accessing string elements, Array of strings, passing
strings to functions, String functions.
Q. Questions Marks CO KL
No.
1 WAP to find the element into a given list. Apply the suitable technique on the 2 CO-4 K3
basis of elements arrangement of the list.
4 WAP to sort set of integers in ascending order by using Bubble sort. 2 CO-4 K3
Find the output
void main()
{
int a[]={0,1,2,3,4};
int *p;
for(p=a+4; p>=a;p--)
{
printf("% d", *p);
}
}
5 Differentiate b/w string and character in C programming language with
example. Write a program to remove consecutive blank spaces from a text 2 CO-4 K3
message.
Note: Use a Separate copy to write their answer. Avoid copying assignments