0% found this document useful (0 votes)
13 views2 pages

KCA102 Assignment-3

Uploaded by

adis6469
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

KCA102 Assignment-3

Uploaded by

adis6469
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Department of MCA

MCA Sem I Sec: B-1 & B-2


Session 2023-24 (Odd Semester)

Assignment-3
Subject Name: PROBLEM SOLVING USING C Subject Code: KCA 102

Date of Assignment: 18.01.2024 Date of Submission: 23.01.2024

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.

2 What do you mean by Pointer? Describes the importance of pointers. 2 CO-5 K3


WAP to swap the values of two numbers entered by user
-using call by value function
-using function call by reference method
-without using third variable

3 Explain following types pointers with suitable example: 2 CO-5 K3


(i) Null pointer (ii) void pointer (iii) Dangling pointer
(iv) constant pointer

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.

Signature & Name of Faculty HOD Signature


Date: Date:

CO-Course Outcomes mapped with respective question KL-


Bloom's Knowledge Level (K1, K2, K3, K4, K5, and K6)

K1 – Remember K2 – Understand K3 – Apply K4 – Analyze K5 – Evaluate K6- Create

Note: Use a Separate copy to write their answer. Avoid copying assignments

You might also like