This tutorial provides a highly pragmatic roadmap for exam success by distilling core C programming logic into clear, actionable steps. It is an effective resource for students who need to bridge the gap between theoretical concepts and practical exam performance.
Inmersión profunda
Prerrequisito
- No hay datos disponibles.
Próximos pasos
- No hay datos disponibles.
Inmersión profunda
🔥Principle of Programming Using C | BCA 2nd Semester PYQ Paper Solution | DAY-04Indexado:
🎯 BCA 2nd Semester के छात्रों के लिए इस वीडियो में “Principle of Programming Using C” के Previous Year Questions (PYQ) को आसान भाषा में समझाया गया है। 📘 वीडियो में शामिल Topics: ✔ C Programming Basics ✔ Data Types & Variables ✔ Operators & Control Statements ✔ Loops & Functions ✔ Arrays & Strings ✔ Important PYQ Solutions ✔ Exam Preparation Tips 🔥 अगर आप BCA 2nd Sem की तैयारी कर रहे हैं, तो यह वीडियो आपके लिए बहुत मददगार होगा। 📌 चैनल को Subscribe करें और Bell Icon ज़रूर दबाएँ। _____________ 📢 Join Our Telegram Channel -:https://t.me/bcawithratnakarsir 📚 For:-BCA|MCA|B.com | Students ✅ Notes | PYQ | Important Questions | Updates 👉 Join Telegram Channel - BCA With Ratnakar Sir :https://t.me/bcawithratnakarsir ___________________ 📢 Join Our WhatsApp Group :https://whatsapp.com/channel/0029VamiCkm3WHTVZiIBN71G 📲 For:- BCA| MCA | B.com | Students Download App : https://fjlba.courses.store/836318? 📲Contact No :- 8009012815, 7275443048 ✔ Daily Important Questions ✔ Exam Updates & PDFs 👉 Join WhatsApp Group Now- - -https://whatsapp.com/channel/0029VamiCkm3WHTVZiIBN71G BCA BCA 2nd Sem Principle of Programming Using C POP Using C C Programming C Language BCA PYQ Previous Year Question BCA Exam 2026 C Programming Tutorial Programming Using C BCA Previous Year Paper POP PYQ BCA Semester Exam Coding for Beginners Functions in C Arrays in C Loops in C C Notes BCA Students ____________ #BCA #BCA2ndSem #POPUsingC #CProgramming #CLanguage #BCAPYQ #PreviousYearQuestion #BCAExam2026 #ProgrammingUsingC #Coding #FunctionsInC #ArraysInC #LoopsInC #BCAStudents #CProgrammingTutorial #uniqueonlineguru
Come on brothers, hello and welcome all of you children to your channel Unique Online Guru. I am Nitin Srivastava, it is time for the C language class, so let's start the class without any delay. Children, in the last two classes that I took for C language papers, I started the questions of section A and section B and also got them solved. I have explained it to you and I hope that you must have liked its questions, the pattern of solving them and the most important thing is that I want to know whether you liked the class or not, you can give your feedback. My whole effort is to help you as much as possible. I can get as many questions solved as possible. Hello Sir. Okay R Computer Science you are Rajan Chaudhary sir. Welcome Rajan Chaudhary ji. You are very welcome to our YouTube channel. I hope you are doing very well. So it's time to start class. Let's talk less and start studying. So late start. Let us show you what are the questions of today's paper. So kids today I am going to start your third section of section C.
And in this section Attempt Any Two Questions from Number of Questions there will be two questions i.e. big questions. The value of each question is 15 marks. That is, large which is called long answer question.
Look at the long answer types, know one thing here that this is not a non-technical study where there are short questions here. It's a long question. Long answer type questions are powerful because of their content.
It does not matter which section he comes from. If the question is good then it will be explained automatically. If the question is not strong then you will not be able to push it much. So with the hope that you are ready now? Let me take the first question in today's class.
What is a first question? Look at the question.
A define an array of third what? You create the array.
Tell me what is it? Explain 1D and 2D arrays and saying write a program to multiply two matrix. I had told you the example of matrix addition in the previous class.
Remember if you have joined us in this class. Today, instead of adding the matrix, you are being asked to multiply the matrix. So first let us cover the theoretical area.
Then we will discuss further. Come on brothers, let's all start today's class.
What is the first question? What is an array?
What is this array? So let's go and see.
An array is the collection of similar data types. The simplest, shortest definition, if any, of an array is possible. The smallest definition, if any, of an array is in front of you. What is array? This is a collection. Whose collection is this? This is a collection of similar data types or similar data items. Similar means if it is an array then if the value in it is integer then all will be integer. If there is float then all will float. If there is a character, then all characters will be there. It cannot be that there is a mixture. Four should be floats, two should be characters, and one should be an integer. It is not possible. An array will always be a collection of children of similar data items. So now the question arises, how many types of arrays are there?
You will talk about types.
If we discuss about array types, then see, there are mainly two types of arrays, children.
One is your single dimension and the other is yours, you have asked, here I am discussing only that.
Double Dimension We are here discussing about two types of arrays. One which you can call single dimension, children. And the second one which you can also call double dimension array. First of all let's talk. Who are you talking about? Single Dimension Array Key We're talking here about single dimension. Come on, what would you call a single dimension array? Will anyone among you tell me?
So such an array is the array that only has a single axis.
An array having only one axis is called a single dimension array. Whether it could be the x axis or the y. Look, if you created it like this, let's say the array is named A 10 20 30 40 50, okay, now axis zero, what would you call it, sir, you would call it a single dimension array. There is only one axis here and its number is zero. That could be x.
That could be y. Ok?
You would call such an array a single dimension array. In simple terms, an array that requires a single index value to access the element to be stored or displayed is called a single dimension array. And if you talk kids about multidimensional array, not multi, here we talk about array. It is said like this in the paper.
So sir, what would you call a 2D array? Please look carefully children.
See here.
These are two axes here. One axis zero axis one.
We children also call this array by another name.
It is called Matrix.
What is this called? This is also called matrix. What is this called, my children? This is also called matrix.
And remember, here you have to access the element, otherwise double index value will be required. How many index values do you need, son? Two index values are required.
Single dimension single index value. Double dimension double index value. That means here there is an x axis, there is a y axis. Both axes are used and in single dimension there is only one axis, whether it is horizontal i.e. x or vertical i.e. y. So this is a technical mechanism.
If someone asks you how to declare it? How to declare a single dimension.
I will tell you both.
How do you declare a single dimension, kids?
Rajan Chaudhary ji, I can explain this code that you have written, but right now is not the moment for its explanation, you can ask for it separately, I will let you explain, son, let me tell you the question in the paper because the children have exams, okay, and his exam is near, I will explain it, there is nothing in it, a function has been declared and external storage class has been used in it. But this is not a movement. Please don't do this now.
Time will increase.
Please let me solve the questions I have now. I will explain. You know I will get it done.
What I am trying to explain.
Look very carefully children. How to declare a single dimension array.
I will explain how to create a single dimension array.
Ok? How do you declare a single dimension array? So children, what will you write first?
You will tell its syntax and the type of data.
Then what will you give? The name of the array.
And what will you give in brackets? Its size.
Children, please watch this carefully.
Try to understand this carefully.
First you will specify the data type. Then we will name the array and finally what will we name it? I will give you the size. So if you look at this, I declared int a of 5 equals 2 3 4 5 6, so what did I do here? A single dimension array is created.
Darpan Kushwaha ji, hello son.
You are most welcome. A single dimension array is created named A. It is a size five.
Its data type is integer. Meaning, this array will hold five integer values in memory. And see, I have initialized it, that is, declared the array and also initialized it. Both these statements have been made together. And if someone says how to declare 2D array kids how will you be able to declare 2D array?
So if you want to declare a 2D array, the first thing you need to do is type and name the array.
Then what will you tell me?
Tell Ro.
Then what will you tell me?
Tell the call.
And give a semi colon.
Look carefully. What is your method?
This is the easiest way to declare a 2D array as children.
How will it happen in this? If you have given int A, look carefully.
3 / 2 Do you know what this means? There will be three rows and two columns, so there will be six elements in it. 1 2 4 5 6 See how this six element array will be arranged in the memory 1 2 3 4 5 6 0 1 2 0 1 What is the name of array AR if you try to understand it. So look at this, 0 1 2 are days and this 0 1 which is written here are calls.
Ok? So this is your way of managing.
Whom? There is a way to manage and handle two-dimensional arrays, children.
What is your one? It's everyday. What is your one? There are columns. You can create a matrix using rows and columns.
So the declaration is very simple. It is very easy. It is very simple.
And children, if the question paper is saying how to or how to, it is not saying multiply to matrix.
So children, how is a matrix multiplied? Let me try to explain that to you. Please try to understand it very carefully. The multiplication in a matrix always happens like this.
Let's say this is your matrix.
This is your second matrix.
And after multiplying their result, you can take it like this also.
Its name is A. Let's name it this matrix C. CB will see what do you mean we want to do? C = A multiplied by what? From B. If you need to multiply such a matrix. How does it happen children? Remember, its row element will be multiplied by its column element.
That means if it is written here 2 3 4 5 6 then 2 will be multiplied by four first and will give 2 * 4 = 8. Look carefully, what will be the multiplication of three?
What will happen to this? column. Please try to understand. And what happens here is that the elements of both have to be kept equal. Only then will I be able to become a Gulah properly.
So look, let me restructure it a little bit.
You have to explain.
This is C equals A * Just give me 2 minutes. I will clear it.
What is this of yours? B is. Now you see, suppose it is 2 3 4. Here is 1 2 5. So tell me the multiplication of row by the element of column.
How it will happen? Please try to understand. Two multiplied by one will give two here.
Make one more row.
Three multiplied by two is six. Multiplying four by 5 will give 20. See, row A will be multiplied by column B and where will the result go? will go to row C. And you can do this comfortably even if you have children. This will happen through nested loops. I am writing that loop.
I N T i j You have to declare such variables.
for i = 0 i < = 2 is three, right i++ for j = 0 j < < = 2 j + and what will you write in it? IJ of C means the element of the first array of A in the row of C is from the column of the second array, so if you want the column then you will have to do JI. Just need to change this much.
Look at this, son.
You just have to do this. Just do this much.
Your matrix multiplication will be done easily, kids. Your matrix multiplication will be done easily.
What did you do here? ij in ij of C means the element of row in C plus the element of row in A and the element of column in B.
Which is explained through this picture.
For that, here IJ of C, so this is the row of C, if you give equal IJ IJ of A then it will take from the row. If you multiply B by JI JI then your horror vertical will start running like this. I have told you this trick.
I am sure you will do it.
Now let's move on to the next question.
Spent a lot of time on this.
What is this, look at this binary search tree, look at this, your question is not of C. This is a question of your data structure.
This trick is to ask you for preorder, inorder and postorder traversal.
What is a binary search tree? Where each root element can have at most two children. Now it can be less than two, it cannot be more than two.
That is, the degree of any node cannot be more than two.
So there is no point in taking up this question here. Let us take up the question of C. I think it is better.
Look at this question, it is a very good and simple question. Do this. This second question is to write a C program to interchange the value of two variables without using any third variable. This is called swiping for children. This is a very good question. This is a very good question and it can be solved easily in less time.
Let me show you.
How to interchange the value of two variables without using any third variable. Come on, this question is considered a very good question.
Let me show you.
Look, I am writing a program comment.
To swipe the value of two variables.
How do you swipe the values of two variables? So look kids, write the main function and create an integer variable, let's say the value of a is 10. The value of b is 20. The value of A is 10. The value of B is 20. We have to do the opposite. The value of B in A is to interchange the value of A in B.
How to do it? So look, I am writing it directly in very less coding.
Process to swipe.
By what process are we going to swipe the elements?
Try to understand this.
a = a + b b = a - b a = a - b Look, this is done in three lines of swiping and all you have to do is print f equals a, what kind of variable is it? Print the integer a.
print f b = b to get it printed. There are only three main lines. Just understand that. The rest is played out. You should print this out. It's very easy kids. If you try to understand this. The value of A is 10, the value of B is 20. Tell me what will be in the first line?
What will be the value of a? 10 + 20 so A becomes 30 on this line. Look everyone try to understand carefully.
a = a + b so 10 + 20 becomes 30. What will b be equal to? If the value of a becomes 30 and the value of b is 20 then 20 will be subtracted from 30. Then what will be the value of b? It will become 10. The value has reversed. The value of B is 10. Now see how much is A still equal to? 30. 30 - If the value of B is 10 then what is the value of A when 10 is subtracted from 30? It's 20. That means when you children print A here, the result will be 20.
And if you print B then the result will be 10.
And how is this happening? With whose help did this happen? This happened with the help of these three lines. This is what we call technique to solve, technique to solve, technique to swipe values, how easily, how many ways, how powerfully you are able to swipe the values of your variables.
Look kids, popularity happens with the help of the third variable.
But if this has come in your exam then believe me this question can be repeated.
This question can be repeated, how will you swipe without a third variable and while I am at it, I will also teach you how to do it if you want to do it using a third variable. If you want to take a third variable, then declare a variable named c, the value of a in c is c = a = b = c, just write these three lines, what is this method? Using third variable.
This method was yours with the third variable.
And what was the previous method? What was without using? The third variable was with. So you can see that you can do it very comfortably and in a very cool way through both the methods.
Can solve things. So children, I have great hope that the question that I have brought for you will be answered. This hard work that I am doing with you. What will I get in return for this? All you will get is that if your papers go well then I will be happy. This is my only wish, this is my hope that you take this class and if some of your papers can be better then we will be very happy, especially me personally because a lot of hard work is put in with you on how we can access the value of a pointer variable.
How can we access the value from a pointer variable?
See the structure question given below.
I got it done in yesterday's class.
How do we access values using pointer variables? Let me tell you this in brief and this will also end your paper.
See what I have to tell you.
Accessing value of variable using pointer.
How can we access the value of a variable using a pointer? So come quickly and see it.
Write the main function. I am not writing the entire program.
Just giving you an overview.
This will definitely be completed. I N T a = 10 comma asterisk ptr I discussed an integer variable and a pointer variable in the same line.
Declared.
I put A's address in the PTR. Now look at printf, look carefully, write a equals value of a equals percentage d and you have printed a and after this what will you write in its next line?
print f value of a equals percentage d asterisk ptr done this will be your answer see you have created an integer variable my children what name integer variable created named a ok. So this is your A. You have set the value of A as 10. A has an address. 66310 Suppose you can accept this. empty you created a pointer variable ptr and what did you do in this line? The address of A is stored in the PTR. That means 66310 is stored in your PTR variable.
Now if you simply print the value of A then you know that it will be 10. But how will the value of A be printed here using the pointer?
When you write PTR, simple PTR, you will get this 66310 and the asterisk at this location means that you will get the value of this location. So what is the value of this location? The value of 66310 is your 10.
So this is your way to access the pointer, kids. So I hope you're enjoying this class.
I have tried to give a correct answer to every question in less length and with less technicality.
So kids, this paper is over here. I will meet you again very soon with some new subject and some new paper.
Now I want your permission for today and if you like my class then please keep subscribing to our channel so that in future I can keep bringing such excellent classes on different subjects. Be it Python class or C, web designing or IoT, O level exams are approaching. So maybe a new course, a crash course in which you can try to complete the course in the best possible way in less time.
So with the confidence that you will join us. We will meet again. Thanks for joining us. Good night kids. Stay safe, stay healthy because the weather is very bad. Avoid the heat. Do not go out in the sun unless it is absolutely necessary.
With this hope, we will meet in the next class.
Hello son. Thank you. Jai Hind. Good night.
Videos Relacionados
Ubuntu Touch Q&A 190
UBports
241 views•2026-05-17
Learning k8s ep. 3 - The end of the VM
devcentral
102 views•2026-05-15
Iterators and Generators: Real Use Cases
jsmentor-uk
188 views•2026-05-17
TCS NQT Coding Questions Solution (One Shot) | TCS NQT Preparation 2027 | TCS Actual PYQ 2026
knacademy20
2K views•2026-05-17
The 4 Bit AI Training Trick
explaquiz
414 views•2026-05-19
Image to 3D World Workflow 👀
badxstudio
843 views•2026-05-16
Why Learn Algorithms in the AI Era
bitsandproofs
245 views•2026-05-17
NFA - Transition Diagram and Transition Table
nesoacademy
198 views•2026-05-19











