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.
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👍😁
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.
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*/
// 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]); }
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! 😅
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)??
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.
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.
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.
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.
Your Voice is Amazing 😁 & explanation is crystal Clear.♥️
That is true
Hahahahah
Chetna mam ka dialogue hai from chetchat crystal clear 😅
Ji😢
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.
Bro I m bca 1st year student hii
I found this channel i liked it and i suggested this to others also
To anyone wondering, a formula to get size of array is:
sizeof(arr)/sizeof(type) - 1
Everything is perfect. Presentation, explanation...&. your voice specially...👌👌😃
wow your videos are very expilicit and i cant lie they are the best programming videos i have come acrossed
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👍😁
👍
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.
can u rewrite the code in that way please
is this referring to make the user type any number? then it reverses the given numbers by the user?
Best lecturer
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);
}
I used this:
#include
int main()
{
int i=0;
int A[9]={34,56,54,32,67,89,90,32,21};
while(i
You are a really cool teacher bruh, thanks a lot🔥
I learn a whole concept of array from here thank u so much sir!
Your explanation is really good. Thank you man ♥️
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*/
Super explanation and voice is very clear and superb Sir
sir, you explain everything so beautifully....thanks a lot....
Thank you sir with you best explaination ....
Thank you for teaching us this presentation
// 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;
}
Done it by myself thanks to you Sir.
Awesome explanation sir
Thank you sir your video amazing 🤩
You make my teaching better
Hey Jaspreet! Please make a video on logic building in programming, we want to learn it from you.
Yes getting size instead of hardcoding length will be better
Thanks a lot 😊
best best awesome Neso Academy
pls sir complete this course. luv u always
Sir please upload more videos!!!
I m waiting!!
Nice explanation bro....
Really very nice... Please upload more videos on arrays problem.. I need one video on .. how to find a majority element in an array?
Sir you are great at explanation
i code this program with macro and change the length to 15.it is really a batter way to cement
Then what about initialisation of values...🤔
If u don't mind send the code which u've done with macro plse
Thank you so much sir
This really helps all
Very nice and detailed explanation thank you
Very well defined 👍🏻
Really amazing 👍.
Always love your videos .....
Thanks sir online learning is always better than college 🤩👍🏻👍🏻
Thank you so much sir for your explanation 😊
Your video very useful thanks sir your explanation so good keep going sir❤
Great 😀
Thanks a lot sir
Nice video sir
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! 😅
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)??
In which class you are? Are you engineering student Or a student👦📖🎒
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.
@@Godl_Damon Thank you for your answer🙂🙂 I am persuing B.Tech 🙂
@@Godl_Damon u mean it's just like fun() r8..if it's tq u for the xplaination..
its basically abt the return type of the main function........int will return an integer value whereas void will return nothing..
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.
thanks for the video.i uderstood very well the video.thanks for all darling..
You are Gem ❤️ Love You from the core Of my heart..
I did it😄
Can someone explain if there is difference with this code
this code for(i=8; i=0; i--)
Thanks a bunch!!
is
for(i=9;i>0;i++) correct also?
Very helpfull to undersad the cocept of arry
I have gone through this kind of problem before..
although it was fine!!
thank you so much
my "for" loop is different. it looks like: for(i=8; i
Please sir make a video on the subject of High voltage engineering
i did it before seeing it
Sir can u please make some more videos on string and arrays
Sir best
Tq very much sir
Thank
My return value doesn't have space between them they are 213290 so on . What to do?
I am from Bangladesh
Thank you
What is your name
Awesome
Thank u
Sir , please upload the next videos soon...
Provide a solution to teach
pupils how to read and write
alphabets between A and Z
Using C language
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
Thank you so much sir your explanation is better than all of the you tubers
Sir to read the inputs we have to write scanf inside of the loop but you written printf please explain it sir 💜
Reverse an array
#include
using namespace std;
int main(){
int arr[] = {34,56,54,32,67,89,90,32,21};
for(int i = 0;i
Sir upload network theory videos sir
Mate, how can I get a voice like you?
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
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.
sir what condition (I=8; I
I think it'll be an infinite loop.
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.
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.
Sir ya course ap c++ may kar sakty hai in urdu or hi di lngiage
I an From Bangladesh. sir you?
I=array.length-1;i==0;i--
I am right
Nice
Ossam
In reversing u changed the value of i in 2for Loop why
Value ham program run krne ke baad krna chahte hai kya kre
it's easy
how can use this program in function
How we can sort them after that!
sir reverce program me 0 se start kr rha hai borland c++ software pr
👌👌👌
Sir
Sir why we have not taken any parameter
hey 21 is in the 9 position
First one is working fine but 2nd for loop isn't working m getting no out put
Plz sir upload fast
🥰🥰🥰
upload new lectures please
It coming error
I'm not get you well because of your pronounced