Hii sir how we can write user value in array in this code. you directly took a[10] here i want to take user array how can we write in this code sir plzz reply ASAP
One way to do this is to int size; printf("Enter no. of elements : "): scanf("%d", &size); int a[size]; Now, you can use array a. If size is 7 array size will be 7, if size if 15 array size will be 15. But, here you have to declare the array after taking input, which isn't possible everytime. That's why we have to use dynamic memory allocation. Means if we make array of size 10 and user enters 5 elements, we will release the remaining 5 spaces. If user wants to enter 15 elements we will add more 5 spaces.
Best Explanation sir 18 min ke video me 3 program samjha diye
sir your teaching style mind blowing
Thanks a lot !
Sir jetlu thanks kav etlu ochhu chhe , ❤❤❤❤❤❤❤❤ love you sir❤
You are great teacher ❣️
Good explanation ❤️
very helpful sir thank you❤
12 video dekhne ke bad sahi wala video mila hai
Thank you so much sir very great explanation❤❤
Thanks you so much sir, ❤️❤️❤️❤️❤️❤️
You are very good teacher
sir apka video content bhut acha h
Thanks Devki!
Just awesome sir awesome 👌👌👌👌👏👏👏👏👏💓💓💓💓💓💓
Thanks Mohit 😊
Good explanation sir i am thankful to u .
Thanks Radhey!
bhai aap mastt samjhate ho...thanks a lot.
Most welcome Akbar & please share this with your friends.
Mast hai sir❤️❤️❤️❤️
very nice explanation sir
Keep watching!
good explaination sir thank you sir
Thanks & most welcome😊
Nice sir❤️, completely understand
Thanks a lot Abhishek!
Very nice explanation sir🙏💐 thank you
Thanks & most welcome Pongkaj!
@codeitup sir please try to cover pointers with 2d arrays and pointers arithmetic as well.
THANK YOU SIR
Most welcome!
Thanks a lot sir 🙏
Most welcome!
Sir awesome tha ie video 😃😃
Thank you so much 😀
good explanation thanks
Thanks & most welcome!
Thank you sir.
😊
very good explanation sir thanks
Thanks a lot Sandhya!
Bout acha h
Sir please add data structure and algorithm using C please sir 🙏🙏
Thanku so much sir
Sir pointer with 2-D array please 🥺🥺🥺
Thanks sir
Most welcome!
good explaination:)thanks!
Thanks Simran 🙂
Keep learning
Sir data structure ke upar video banao
Na plzz
sir please make video on DSA implementation using c
Please add data structure and algorithms using C or Java sir
Great video sir❤❤
Good job.
Thanks!
super sir
Sir,
In the loop i is increasing by 2 but in the same loop why even and odd are increasing by 1 ? 'Even' and 'Odd' are also integer.
to count how many odd and evens are.
sir please made a video on direfrencing pointer in c
Nice sir ji
Thanks Rizwan!
♥️♥️💖
😊
Sir hmm ese nhi likh skte thhe*(p+2*i)
plz upload data structure in c as well..
After completing C Programming. Just FIle handling is remaining and after that I will start data structure using C.
Hii sir
how we can write user value in array in this code.
you directly took a[10] here i want to take user array how can we write in this code
sir plzz reply ASAP
One way to do this is to
int size;
printf("Enter no. of elements : "):
scanf("%d", &size);
int a[size];
Now, you can use array a. If size is 7 array size will be 7, if size if 15 array size will be 15.
But, here you have to declare the array after taking input, which isn't possible everytime. That's why we have to use dynamic memory allocation. Means if we make array of size 10 and user enters 5 elements, we will release the remaining 5 spaces. If user wants to enter 15 elements we will add more 5 spaces.
Good
Thanks
Jitne taarif ki jai utni kaam h
Thank you so much Ashar, keep learning😊
integer ka space 4byte hota hi
Sir output azeeb hi aa raha h
Is program ka output to btaya hi nhi
Laptop me code likh ke dekho output kudh ayega or is se tumhara practice vi ho jayega
To kese samzha rhe ho
Sir hindi me bata do
Aapko wo printf loop ke bahar rakhna tha aba wo bhi 10 baar repeat hoga