Arrays in One Shot | C Programming | Lecture 7

preview_player
Показать описание
In this video, Raghav Sir will teach you about 1D ARRAYS in DETAIL. This is Lecture 7 of the C Programming series. Topics covered are - syntax and declaration, output and input, memory allocation, passing Arrays to functions and LOTS of questions. 2D ARRAYS will be covered in the next Lecture in detail, coming SOON.

Are you finding the classes helpful?
Stay tuned for more!

PW Skills is announcing the launch of the following programs,

Binary Batch:- Java-with-DSA-&-System-Design (Java with DSA & System Design)

Sigma Batch:- Full-Stack-Web-Development (MERN Stack)

Impact Batch:- Data-Science-Masters (Full Stack Data Science)

If you are joining us late, to know more about PWSkills & plans :

TIME STAMPS:
00:00 Introduction
03:34 What is an Array?
08:40 Syntax and Declaration
13:10 Indexing in Arrays
16:08 Accessing Array elements
24:07 Output and Input using LOOPS
38:49 Prob 1 : Given array of marks, print marks less than 35
45:00 Prob 2 : Find the correct declarations
48:47 Prob 3 : Indexing based question
49:39 Memory allocation in Arrays
1:00:48 Prob 4 : Predict the output - 1
1:03:10 Prob 5 : Predict the output - 2
1:07:37 Garbage Values
1:09:04 Prob 6 : Find the error - 1
1:12:13 Prob 7 : Find the error - 2
1:13:17 Prob 8 : Print the sum of elements in given array
1:18:14 HW 1 : Print the product of elements in given array
1:19:11 Prob 9 : Print the maximum element in given array
1:31:26 HW 2 : Print the minimum element in given array
1:31:36 Prob 10 : MCQ - 1
1:33:01 Prob 11 : MCQ - 2
1:34:56 Prob 12 : MCQ - 3
1:35:14 Passing ARRAYS to FUNCTIONS
1:44:36 Prob 13 : State True or False
1:45:47 Prob 14 : Multiply odd indexed elements by 2 and add 10 to the even elements
1:52:38 HW 3 : Print elements greater than x
1:53:59 Prob 15 : Print difference b/w odd indexed and even indexed elements
1:58:12 Prob 16 : Find total number of pairs whose sum add up to x
2:07:07 Prob 17 : Find total number of triplets whose sum add up to x
2:12:50 Prob 18 : Find the second largest element in Array
2:19:28 **Prob 19 : Find second largest element in single pass of array
2:42:15 Prob 20 : WAP to copy elements of array to another array in reverse order
2:46:06 *Prob 21 : Reverse the Array without using extra array
2:53:35 HW 4 : Check if given Array is Palindrome or not
2:54:52 **Prob 22 : Rotate the given Array by ‘k’ steps
3:18:55 Prob 23 : Check if the given element in present in Array or not
3:35:42 HW 5 : Find the missing element in given range
3:39:40 Prob 24 : Find the duplicate element in given array
3:44:15 Prob 25 : Find unique number, where all other elements are duplicate
3:59:30 Comment kardo na fir ki - Maza aa gaya

#CProgramming #RecursionOneShot #CCourse #CompleteCTutorial #ProgrammingBasics #LearnCProgrammingOneShot #CTutorial #PWSkills #Arrays #CollegeWallah #PhysicsWallah
Рекомендации по теме
Комментарии
Автор

📗 Enroll Now in Decode Batches and become JOB READY:

CollegeWallahbyPW
Автор

TIME STAMPS:
00:00 Introduction
03:34 What is an Array?
08:40 Syntax and Declaration
13:10 Indexing in Arrays
16:08 Accessing Array elements
24:07 Output and Input using LOOPS
38:49 Prob 1 : Given array of marks, print marks less than 35
45:00 Prob 2 : Find the correct declarations
48:47 Prob 3 : Indexing based question
49:39 Memory allocation in Arrays
1:00:48 Prob 4 : Predict the output - 1
1:03:10 Prob 5 : Predict the output - 2
1:07:37 Garbage Values
1:09:04 Prob 6 : Find the error - 1
1:12:13 Prob 7 : Find the error - 2
1:13:17 Prob 8 : Print the sum of elements in given array
1:18:14 HW 1 : Print the product of elements in given array
1:19:11 Prob 9 : Print the maximum element in given array
1:31:26 HW 2 : Print the minimum element in given array
1:31:36 Prob 10 : MCQ - 1
1:33:01 Prob 11 : MCQ - 2
1:34:56 Prob 12 : MCQ - 3
1:35:14 Passing ARRAYS to FUNCTIONS
1:44:36 Prob 13 : State True or False
1:45:47 Prob 14 : Multiply odd indexed elements by 2 and add 10 to the even elements
1:52:38 HW 3 : Print elements greater than x
1:53:59 Prob 15 : Print difference b/w odd indexed and even indexed elements
1:58:12 Prob 16 : Find total number of pairs whose sum add up to x
2:07:07 Prob 17 : Find total number of triplets whose sum add up to x
2:12:50 Prob 18 : Find the second largest element in Array
2:19:28 **Prob 19 : Find second largest element in single pass of array
2:42:15 Prob 20 : WAP to copy elements of array to another array in reverse order
2:46:06 *Prob 21 : Reverse the Array without using extra array
2:53:35 HW 4 : Check if given Array is Palindrome or not
2:54:52 **Prob 22 : Rotate the given Array by ‘k’ steps
3:18:55 Prob 23 : Check if the given element in present in Array or not
3:35:42 HW 5 : Find the missing element in given range
3:39:40 Prob 24 : Find the duplicate element in given array
3:44:15 Prob 25 : Find unique number, where all other elements are duplicate
3:59:30 Comment kardo na fir ki - Maza aa gaya

GrooveMusicc
Автор

mind so detailed lectures, anyone who wants to start his programming journey can definitely start with this c programing lectures...

ankanmaity
Автор

1:06:53 Sir, yahan par i ki value starting wali nahi hogi i.e. 1 balki loop 0 se 48 baar chalega aur finally i = 49 par loop exit ho jyega toh lastly i me 49 value assign ho jyegi.... So output par 49 print hoga ❤❤❤

Rahul_Raj__
Автор

Hands down, One of the best lectures on C, keep it up
Maza aa gya

binarydecode
Автор

Thankyou so much for the amazing lecture sir !! I am so grateful to you !! You teach soooo good 😀😀

Pretty-Skie
Автор

Thank u sir, very helpful for 1st year students !!

MudassirHasan-ityw
Автор

Very nice sir, most detailed lecture I have ever seen.

rikmishra
Автор

I understand coding because of You✨️❤️ thank You sir

akshaykanawade
Автор

You are great sir❤
Unbelievable teaching 👍
Thank you sir 🙏

Ganesh.programmer
Автор

Raghav Bhaiya or PW team ka dil se Shukriya...❣️

anshulsharma
Автор

Sir aap hi C++ ka complete course ka playlist banaye n aap bahut achhe padhate hai please sir please 😢😢😢😢

softmedun
Автор

your last question has a minor issue the right code for that question is:
int main(){
int arr[7]={1, 3, 2, 6, 3, 2, 4};

for(int i=0;i<7;i++){
bool flag = false;
for(int j=0;j<7;j++){
if(arr[i]==arr[j]&& i!=j)
flag = true;
break;

}
}
if(flag == false){
printf("%d", arr[i]);
break;
}
return 0;
}

rohitjain
Автор

49:50 actually memory allocation depends on the architecture of your system.. if you have a 32 bit system then the size will be 2 bytes(integer) and 4 bytes 64 bit system...

nayan_CSE
Автор

1:07:23 sir yha pe 49 print hoga kyunki loop 0-48 yani 49 baar chalega or at the end 49 pe jake ruk jayega aur 49 value hi assign ho jayega

ysc_chandan
Автор

01:07:36 The o/p will be 49 and not 0 because we have declared variable i in main, not in loop

shubhamgolvelker
Автор

thank you sir your knowledge and teaching method help to learn coding very much 😇😇💥

Shivamishra
Автор

Sir, If there are more than two duplicate elements in an array then what to do

vasugupta
Автор

at 1:07 the output is provided by you is 0 to the code but it will be 49
int sub[50], i;
for(i=0;i<=48;i++);
{
sub[i]=i;
printf("\n%d", sub[i]);
}
but it will be 49 because the loop will iterate till 49 and then terminate.

basicomathematics
Автор

Great teacher i truly liked your teaching style

victory-path