Arrays in C (Solved Problem 1)

  Рет қаралды 452,066

Neso Academy

Neso Academy

5 жыл бұрын

C Programming: Arrays in C (Solved Problem 1)
Topics discussed:
1) C program to reverse the order of the numbers stored in an array.
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #Arrays #ArraysInC

Пікірлер: 145
@gateprep8076
@gateprep8076 4 жыл бұрын
Your Voice is Amazing 😁 & explanation is crystal Clear.♥️
@sakshishirke548
@sakshishirke548 Жыл бұрын
That is true
@areejfatima4297
@areejfatima4297 Жыл бұрын
Hahahahah
@chandrakantgaikwad7190
@chandrakantgaikwad7190 7 ай бұрын
Chetna mam ka dialogue hai from chetchat crystal clear 😅
@s.vasanth638
@s.vasanth638 4 ай бұрын
Ji😢
@creative_tush9508
@creative_tush9508 5 жыл бұрын
Hats Off.. Sir, I am A Diploma student living in Bangalore, Actually I suggest all of my friends who are weak in programming to go through Neso Academy Videos, All of them are Cleared their concepts and they are thanking me for my suggestion, but they also told that the videos are till Arrays only Not pointers,Structures and Unions........and above. So we are requesting you to make videos on the above topics as early as possible sir. And you even told that memory layout of C program part till the Stack segment, please Explain about the Heap memory segment part also sir... Seriously We students need A Super teacher like you. And We will Definitely provide this video suggestion to our colleagues. Thank you so much sir.... We will Keep supporting you.
@vinaypratap620
@vinaypratap620 5 жыл бұрын
Bro I m bca 1st year student hii
@nehajaiswal3942
@nehajaiswal3942 3 жыл бұрын
I found this channel i liked it and i suggested this to others also
@yenzyhebron5278
@yenzyhebron5278 3 жыл бұрын
To anyone wondering, a formula to get size of array is: sizeof(arr)/sizeof(type) - 1
@shivu.sonwane4429
@shivu.sonwane4429 5 жыл бұрын
Everything is perfect. Presentation, explanation...&. your voice specially...👌👌😃
@anishapatil9560
@anishapatil9560 3 жыл бұрын
I learn a whole concept of array from here thank u so much sir!
@tangarosine677
@tangarosine677 Жыл бұрын
wow your videos are very expilicit and i cant lie they are the best programming videos i have come acrossed
@phobic1818
@phobic1818 3 жыл бұрын
You are a really cool teacher bruh, thanks a lot🔥
@masumaparvin5918
@masumaparvin5918 3 жыл бұрын
Thanks a lot sir, ur teaching level is different and too good, i can understand easily from your lectures.. Again infinite thanks.. ☺️ Keep going sir👍😁
@shamasmarty4505
@shamasmarty4505 2 жыл бұрын
👍
@Ajaykumar-rg6mb
@Ajaykumar-rg6mb 2 жыл бұрын
Your explanation is really good. Thank you man ♥️
@anubhavmukherjee7443
@anubhavmukherjee7443 2 жыл бұрын
sir, you explain everything so beautifully....thanks a lot....
@pabieclaudialimba8703
@pabieclaudialimba8703 5 жыл бұрын
Best lecturer
@karuppusamyp7081
@karuppusamyp7081 4 жыл бұрын
Thank you so much sir This really helps all
@muzamilbhat4757
@muzamilbhat4757 Жыл бұрын
Thank you for teaching us this presentation
@MrCEO-jw1vm
@MrCEO-jw1vm 3 ай бұрын
Thanks a bunch!!
@rekhachaudhary8746
@rekhachaudhary8746 2 жыл бұрын
Really very nice... Please upload more videos on arrays problem.. I need one video on .. how to find a majority element in an array?
@tayyab.sheikh
@tayyab.sheikh 6 ай бұрын
Hey Jaspreet! Please make a video on logic building in programming, we want to learn it from you.
@andistheinforitbutso7513
@andistheinforitbutso7513 2 жыл бұрын
Done it by myself thanks to you Sir.
@fadzra6689
@fadzra6689 5 жыл бұрын
Always love your videos .....
@muskaan1537
@muskaan1537 4 жыл бұрын
Very nice and detailed explanation thank you
@639-csejjahnavi4
@639-csejjahnavi4 4 жыл бұрын
Awesome explanation sir
@ghanyakhan1430
@ghanyakhan1430 3 жыл бұрын
Very well defined 👍🏻
@ashisdixit7646
@ashisdixit7646 5 жыл бұрын
pls sir complete this course. luv u always
@eyongakemfritzgeraldarrey1526
@eyongakemfritzgeraldarrey1526 5 жыл бұрын
You make my teaching better
@daiaikyrmenmajaw3531
@daiaikyrmenmajaw3531 Жыл бұрын
Thank you sir with you best explaination ....
@samajahitha8377
@samajahitha8377 3 жыл бұрын
Really amazing 👍.
@aboutknowledge2474
@aboutknowledge2474 5 жыл бұрын
best best awesome Neso Academy
@snigdharoy1938
@snigdharoy1938 2 жыл бұрын
Thanks a lot 😊
@ritikvishwakarma2813
@ritikvishwakarma2813 2 жыл бұрын
Thank you sir your video amazing 🤩
@saideekshitha3431
@saideekshitha3431 3 жыл бұрын
Super explanation and voice is very clear and superb Sir
@bhawnachauhan4375
@bhawnachauhan4375 3 жыл бұрын
Thanks a lot sir
@theadil1
@theadil1 3 жыл бұрын
You are Gem ❤️ Love You from the core Of my heart..
@adityamaurya9851
@adityamaurya9851 Жыл бұрын
3:27 Tip: Instead of writing i = 8 as the initialisation, you can write sizeof(a) / sizeof(a[0]) where, a = name of array a[0] = one element of array (it can be any number but it's advisable to use zero because an array can be of one or two elements too. This will result in automatically fetching the total numbers of elements even if it is not given in the question.
@rippleyes
@rippleyes 6 ай бұрын
can u rewrite the code in that way please
@HelloWorld40408
@HelloWorld40408 Жыл бұрын
Thank You Sir
@balajishanmugavel1861
@balajishanmugavel1861 3 жыл бұрын
Nice explanation bro....
@egohariomgamer9705
@egohariomgamer9705 11 ай бұрын
Your video very useful thanks sir your explanation so good keep going sir❤
@komalrani4189
@komalrani4189 10 ай бұрын
Thank you so much sir for your explanation 😊
@user-sn4sf1qe3t
@user-sn4sf1qe3t 3 жыл бұрын
thank you so much
@harmankaur3938
@harmankaur3938 2 жыл бұрын
thank you sir
@prachisingh7468
@prachisingh7468 5 жыл бұрын
Sir please upload more videos!!! I m waiting!!
@marathistates
@marathistates Жыл бұрын
Thanks sir online learning is always better than college 🤩👍🏻👍🏻
@supriyaguttula9403
@supriyaguttula9403 2 жыл бұрын
thanks for the video.i uderstood very well the video.thanks for all darling..
@ihsankhattakofficial154
@ihsankhattakofficial154 4 жыл бұрын
Very helpfull to undersad the cocept of arry
@practicalaccount2069
@practicalaccount2069 Жыл бұрын
you could also write for(i=size;i;)//while i is not 0 printf("%d,",a[--i]); /*decrese i by one and then print the array, having the prefix decrease is needed since because we first decrease the index and then print since we start with i=size, which is an invalid index since array max index is size-1*/
@Satyam_10
@Satyam_10 4 жыл бұрын
Nice video sir
@kriscastanares5917
@kriscastanares5917 3 жыл бұрын
Can someone explain if there is difference with this code this code for(i=8; i=0; i--)
@maxk9102
@maxk9102 3 жыл бұрын
I was sitting for like 20 minutes to figure out why my code don't reverse the array. After all of that time I found out that I haven't run a function in main, because I did it in recursive way.
@muhammadsufyan2693
@muhammadsufyan2693 Жыл бұрын
Yes getting size instead of hardcoding length will be better
@aurithrabarua4698
@aurithrabarua4698 5 жыл бұрын
I have gone through this kind of problem before.. although it was fine!!
@einston1523
@einston1523 3 жыл бұрын
Great 😀
@dhaval9950
@dhaval9950 5 жыл бұрын
Please sir make a video on the subject of High voltage engineering
@srinidhisrinivas517
@srinidhisrinivas517 5 жыл бұрын
Sir can u please make some more videos on string and arrays
@niveditaranjan2487
@niveditaranjan2487 3 жыл бұрын
You are doing a great job, thankyou soo much for providing such an amazing lectures,, hats off to you....I want to ask one question i.e; what is the difference between (int main) & (void main)??
@Godl_Damon
@Godl_Damon 3 жыл бұрын
In which class you are? Are you engineering student Or a student👦📖🎒
@Godl_Damon
@Godl_Damon 3 жыл бұрын
I can explain. Void main is what in which we can put our code at once and can call it at any time in our int main function. It's like functions in python.
@niveditaranjan2487
@niveditaranjan2487 3 жыл бұрын
@@Godl_Damon Thank you for your answer🙂🙂 I am persuing B.Tech 🙂
@jeevaalok1467
@jeevaalok1467 2 жыл бұрын
@@Godl_Damon u mean it's just like fun() r8..if it's tq u for the xplaination..
@anubhavmukherjee7443
@anubhavmukherjee7443 2 жыл бұрын
its basically abt the return type of the main function........int will return an integer value whereas void will return nothing..
@dandroidmodded1777
@dandroidmodded1777 Жыл бұрын
is for(i=9;i>0;i++) correct also?
@ayushkawale2017
@ayushkawale2017 2 жыл бұрын
My return value doesn't have space between them they are 213290 so on . What to do?
@aasardkhan1720
@aasardkhan1720 5 жыл бұрын
Thank
@muhammadsufyan2693
@muhammadsufyan2693 Жыл бұрын
Awesome
@true4189
@true4189 3 жыл бұрын
Thank u
@shauryasaxena5263
@shauryasaxena5263 3 жыл бұрын
Tq very much sir
@DaiMoscv
@DaiMoscv 2 жыл бұрын
And this is the elegant version: #define N 9 void print(int arr[N], int i) { if(i < 0) return; else printf("%d ", arr[i]); print(arr, i-1); }
@diwakarkhatiwada
@diwakarkhatiwada 2 жыл бұрын
I used this: #include int main() { int i=0; int A[9]={34,56,54,32,67,89,90,32,21}; while(i
@ireallyloveyou5786
@ireallyloveyou5786 5 жыл бұрын
Interesting.
@sonusambharwal8828
@sonusambharwal8828 4 жыл бұрын
Sir best
@yahia1355
@yahia1355 4 жыл бұрын
I tried these lines in java but didn't work , can someone explain to me why it didn't work : int array[] = {21,11,6,88,12,47}; for(int i =0;i
@Anurag_Gaddamwar
@Anurag_Gaddamwar 2 жыл бұрын
I did it😄
@gamermomentlive
@gamermomentlive 2 жыл бұрын
// write the program to print the fallowing numbers in the reverse order and assume that these numbers are stored in the array. // 34 56 54 32 67 89 90 32 21 #include int main() { printf("Hello world "); int arrsam[9] ={34, 56, 54, 32, 67,89,90,32,21}; int i; for (i = 8; i>-1; i--) { printf("%d ", arrsam[i]); } return 0; }
@mohammademalzarifi9536
@mohammademalzarifi9536 4 жыл бұрын
how can use this program in function
@Soominah_
@Soominah_ 11 ай бұрын
Sir to read the inputs we have to write scanf inside of the loop but you written printf please explain it sir 💜
@niladritadas1908
@niladritadas1908 5 жыл бұрын
Sir , please upload the next videos soon...
@technicalpradhan2936
@technicalpradhan2936 5 жыл бұрын
sir reverce program me 0 se start kr rha hai borland c++ software pr
@harshitha6160
@harshitha6160 5 жыл бұрын
Thank you
@abhishekalandkar4209
@abhishekalandkar4209 4 жыл бұрын
What is your name
@KabugoEnock-vs1nf
@KabugoEnock-vs1nf 9 ай бұрын
my "for" loop is different. it looks like: for(i=8; i
@xiaoshan9722
@xiaoshan9722 3 жыл бұрын
i code this program with macro and change the length to 15.it is really a batter way to cement
@jeevaalok1467
@jeevaalok1467 2 жыл бұрын
Then what about initialisation of values...🤔
@jeevaalok1467
@jeevaalok1467 2 жыл бұрын
If u don't mind send the code which u've done with macro plse
@jacobcollins8551
@jacobcollins8551 3 жыл бұрын
Provide a solution to teach pupils how to read and write alphabets between A and Z Using C language
@muskaan1537
@muskaan1537 4 жыл бұрын
Nice
@shivasaipatel2546
@shivasaipatel2546 5 жыл бұрын
Sir upload network theory videos sir
@Soumyajit_619
@Soumyajit_619 2 жыл бұрын
Mate, how can I get a voice like you?
@tanuja2853
@tanuja2853 5 жыл бұрын
sir your explanation is very clear but i have a doubt on this video that is we have to write scanf function right but you wrote printf
@irminadaniel8711
@irminadaniel8711 4 жыл бұрын
a scanf function in an array is used when you want to input array values from the user, but if they're already given no need.
@itbase2
@itbase2 4 жыл бұрын
i did it before seeing it
@learnwithsaurabh7628
@learnwithsaurabh7628 4 жыл бұрын
Value ham program run krne ke baad krna chahte hai kya kre
@SaiKumar-rt9le
@SaiKumar-rt9le 5 жыл бұрын
👌👌👌
@accessdenied9393
@accessdenied9393 3 жыл бұрын
How we can sort them after that!
@urmilashukla9632
@urmilashukla9632 6 ай бұрын
In reversing u changed the value of i in 2for Loop why
@muhammadkishwarraza4943
@muhammadkishwarraza4943 3 жыл бұрын
Sir ya course ap c++ may kar sakty hai in urdu or hi di lngiage
@alltimevi-logswitharun5415
@alltimevi-logswitharun5415 4 жыл бұрын
sir what condition (I=8; I
@bhagabatiprasad2612
@bhagabatiprasad2612 4 жыл бұрын
I think it'll be an infinite loop.
@irminadaniel8711
@irminadaniel8711 4 жыл бұрын
what is invalid is the condition part(i=0) because in reverse order it's supposed to go back to where it started iterating the loop and end there( to maintain the size and the order, but the later scenario is in reverse mode.
@princemewade2154
@princemewade2154 2 жыл бұрын
Ossam
@JackyShaw
@JackyShaw 5 жыл бұрын
Please, Sir please complete this course. You told in the first video that you will upload the entire course fast and quickly. If not the data structures at least complete the c Programming course because only a few topics are left. Please upload fast sir I check your channel three times a day just to find that nothing new has been uploaded.
@_Who_u_are
@_Who_u_are 4 жыл бұрын
I am from Bangladesh
@adarshparmar815
@adarshparmar815 3 жыл бұрын
Sir why we have not taken any parameter
@sahilraman3185
@sahilraman3185 5 жыл бұрын
upload new lectures please
@boullbanehicham9239
@boullbanehicham9239 5 жыл бұрын
it's easy
@karanthakur11
@karanthakur11 Жыл бұрын
First one is working fine but 2nd for loop isn't working m getting no out put
@s66k854fh
@s66k854fh 2 жыл бұрын
I an From Bangladesh. sir you?
@yonseungchoi7896
@yonseungchoi7896 Жыл бұрын
Reverse an array
@xboxlox
@xboxlox 3 жыл бұрын
Another way to get same result #include #include int arr[]= {34,56,54,32,67,89,90, 32,21} ; int fact (n){ if (n== 9){ printf (" "); return;} printf ("%d,", arr[n]); fact (n +1); printf ("%d," arr[n]); int main(){ fact (0); } Note it requires more space! 😅
@vijayvijey2104
@vijayvijey2104 3 жыл бұрын
Sir
@vinaypratap620
@vinaypratap620 5 жыл бұрын
Plz sir upload fast
@techadil5808
@techadil5808 5 жыл бұрын
I=array.length-1;i==0;i--
@techadil5808
@techadil5808 5 жыл бұрын
I am right
@maromaro5030
@maromaro5030 Жыл бұрын
🥰🥰🥰
@Nur_md
@Nur_md 9 ай бұрын
#include using namespace std; int main(){ int arr[] = {34,56,54,32,67,89,90,32,21}; for(int i = 0;i
@learnwithsaurabh7628
@learnwithsaurabh7628 4 жыл бұрын
Sir program run kr ne ke baad value khud se enter kre wo kaise hoga
@srikanya1975
@srikanya1975 3 жыл бұрын
hey 21 is in the 9 position
Arrays in C (Solved Problem 2)
10:03
Neso Academy
Рет қаралды 333 М.
Array Basics | C Programming Tutorial
13:37
Portfolio Courses
Рет қаралды 36 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 181 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 31 МЛН
Special Programs in C − Pyramid of Stars
11:06
Neso Academy
Рет қаралды 854 М.
Array Programs with clear explanation
1:40:16
CSE GURUS
Рет қаралды 186 М.
arrays are weird
6:57
Low Level Learning
Рет қаралды 106 М.
#19 C Arrays | C Programming For Beginners
13:27
Programiz
Рет қаралды 234 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
Introduction to Two-Dimensional (2D) Arrays
10:20
Neso Academy
Рет қаралды 682 М.
C_46 Arrays in C - part 1 | Introduction to Arrays
18:19
Jenny's Lectures CS IT
Рет қаралды 905 М.
Learn C Language In 10 Minutes!! C Language Tutorial
10:36
AmanBytes
Рет қаралды 203 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН