Inserting an element in an array (C program)

  Рет қаралды 85,353

CSE GURUS

CSE GURUS

4 жыл бұрын

Follow my Whatsapp channel for content updates, questions, contests and many more...
whatsapp.com/channel/0029VaEh...
Technical lectures by Shravan Kumar Manthri.
Watch " Patterns in C- Tips & Tricks " in the following link...
www.udemy.com/course/patterns...
You can watch "Tricky 150 mcqs in C" in the following link
www.udemy.com/course/best-150...
Technical lectures by Shravan Kumar Manthri.
Watch Technical C programming
• Technical C coding : p...
Watch Data Warehousing & Data Mining
• 1. Multi-Dimensional ...
Watch Design & Analysis of Algorithms
• 1. Introduction to the...
Watch Formal Languages & Automata theory
• 1. Introduction to Aut...
Visit us: www.csegurus.com
Contact me @ fb : shravan.kites@gmail.com
Like us on fb: CSE GURUS
This video Inserting an element in an array with execution. #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS

Пікірлер: 58
@vivektripathi2016
@vivektripathi2016 10 ай бұрын
This video is very helpful 😊😊
@dipeshchoudhary1267
@dipeshchoudhary1267 2 жыл бұрын
Very nice explanation..... Thank you so much..... You solved my problem.... Thank you again ❤
@CSEGURUS
@CSEGURUS 2 жыл бұрын
Very glad to hear from u... Keep Learning.. You can watch this playlist for more stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@user-ul6uj2sw9j
@user-ul6uj2sw9j 6 ай бұрын
simple explanation👌❤ thank you
@CSEGURUS
@CSEGURUS 5 ай бұрын
You're welcome 😊...Watch Top 90 Data Structures MCQs in the following link... kzbin.info/www/bejne/n2OvhXSAndB5nJo
@filmyduniya478
@filmyduniya478 2 жыл бұрын
Very nice explanation sir ....
@CSEGURUS
@CSEGURUS 2 жыл бұрын
Thanks and welcome....You can watch this playlist for placement related stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@prashanthkumards9918
@prashanthkumards9918 2 жыл бұрын
Thanks a lot
@nikhilkumar8362
@nikhilkumar8362 2 жыл бұрын
great explanation sir ☺️☺️
@CSEGURUS
@CSEGURUS 2 жыл бұрын
THank you...You can watch this playlist for more stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@Mamathahomemadepowder
@Mamathahomemadepowder Жыл бұрын
Sir y we should decrement here we need to increment right
@ShivamMishra-ke6gi
@ShivamMishra-ke6gi 4 жыл бұрын
Nicemethod of teaching sir
@CSEGURUS
@CSEGURUS 4 жыл бұрын
Thank you.. Keep Learning...
@abethnego8073
@abethnego8073 3 жыл бұрын
Nice explainàtion.sir
@CSEGURUS
@CSEGURUS 3 жыл бұрын
Thanks and welcome..You can watch this playlist for more stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@aariffmohd4980
@aariffmohd4980 2 жыл бұрын
Thnks so mch sir❤️
@CSEGURUS
@CSEGURUS 2 жыл бұрын
Most welcome.. You can watch this playlist for more stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@priyankapaul7077
@priyankapaul7077 2 жыл бұрын
Sir if i want to do while loop then how can i do , i try lot but i dont understand how to do ?
@flynneugene2675
@flynneugene2675 Жыл бұрын
instead of for use while thats all use while until i reaches the particular positoin
@GODTHUNDERAMULYA
@GODTHUNDERAMULYA 4 ай бұрын
Very helpful
@CSEGURUS
@CSEGURUS 4 ай бұрын
Most Welcome.. Watch all sortings with clear explanation in the following link.. www.udemy.com/course/draft/3956622/?referralCode=306AAC6206D9B4584A1B
@aryarowan2283
@aryarowan2283 Жыл бұрын
thank you so much.
@CSEGURUS
@CSEGURUS Жыл бұрын
You're welcome...You can watch this playlist for placement related stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@Instagram_trending_reel1
@Instagram_trending_reel1 11 ай бұрын
Thank you ☺️💟
@CSEGURUS
@CSEGURUS 9 ай бұрын
Most welcome…You can watch this playlist for placement related stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@gayathrisabbella3012
@gayathrisabbella3012 Жыл бұрын
Thank you so much Great explanation sir,God bless you
@CSEGURUS
@CSEGURUS Жыл бұрын
You are most welcome... Watch Top 90 Data Structures MCQs in the following link... kzbin.info/www/bejne/n2OvhXSAndB5nJo
@divyanshpandey9047
@divyanshpandey9047 Жыл бұрын
= in last for loop is giving garbage value i think it shouldn't be there?
@champianbro2291
@champianbro2291 Жыл бұрын
suggest any compiler for cprogramming language.
@CSEGURUS
@CSEGURUS Жыл бұрын
Codeblocks .
@rayan8847
@rayan8847 3 жыл бұрын
Wonderfully explained
@CSEGURUS
@CSEGURUS 3 жыл бұрын
Glad you liked it...You can watch this playlist for more stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@nusrat14082
@nusrat14082 9 ай бұрын
A little correction: array[position] = value ;
@arunsharma4792
@arunsharma4792 3 жыл бұрын
but last value is not printing becz length is not increased......how can we do that ??
@florian124
@florian124 3 жыл бұрын
Recall that you should loop till your index is less or equal to n in the final printing loop to display the last element.
@a-classzone1998
@a-classzone1998 2 жыл бұрын
The second last for loop is wrong!!!There you have to take i>=position-1.
@jithink8509
@jithink8509 10 ай бұрын
yes
@faizufaiz5198
@faizufaiz5198 5 ай бұрын
Thank u
@CSEGURUS
@CSEGURUS 4 ай бұрын
Most Welcome.. Hit the below link for best techniques in patterns in C. kzbin.info/www/bejne/nojLfnSld82cba8
@user-il8hj7qh2h
@user-il8hj7qh2h Жыл бұрын
Why we cant insert like this temp=array[position] array[position]=element array[size]=temp.. Pls rply sir...
@thareeqm.v6921
@thareeqm.v6921 11 ай бұрын
Its swap statement
@bhavikbansiwal5304
@bhavikbansiwal5304 8 ай бұрын
You should do code for it pn your computer screen
@CSEGURUS
@CSEGURUS 8 ай бұрын
You can watch this playlist for placement related stuff in C kzbin.info/aero/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@rajeshkumar-gf1we
@rajeshkumar-gf1we 3 жыл бұрын
why we need to take (pos-1) if we want to put the value in the index 3 we can directly give for(int i=0;i>=pos;i--)
@florian124
@florian124 3 жыл бұрын
GDB can better answer your question, so debug your code by watching carefully the values taken by pos and i.
@nithinkshetriya6095
@nithinkshetriya6095 Жыл бұрын
beacuse index = pos -1
@user-il8hj7qh2h
@user-il8hj7qh2h Жыл бұрын
Why we cant insert like this temp=array[position] array[position]=element array[size]=temp.. Pls rply
@madhusharma5342
@madhusharma5342 2 жыл бұрын
Sir what is i ???
@madhusharma5342
@madhusharma5342 2 жыл бұрын
Plz explain[ printf("enter%d elements /n" , n); ] Why we use n at the end?????.. What it's role?
@madhusharma5342
@madhusharma5342 2 жыл бұрын
Plz sir reply me soon...
@CSEGURUS
@CSEGURUS 2 жыл бұрын
The format specifier %d will be replaced by the value of n.
@gaganthakur7619
@gaganthakur7619 3 жыл бұрын
Hindi ch bolia kro sir
@777sarthik
@777sarthik 2 жыл бұрын
500 likes
@sarthakmoriya541
@sarthakmoriya541 3 жыл бұрын
Code is wrong
@durgaprasad1610
@durgaprasad1610 9 ай бұрын
No it's right
@SarafatAlamIrfan
@SarafatAlamIrfan Жыл бұрын
#include int main() { int array[50], position, c, n, value; printf("Enter number of elements in the array "); scanf("%d", &n); printf("Enter %d elements ", n); for (c = 0; c < n; c++) scanf("%d", &array[c]); printf("Please enter the location where you want to insert an new element "); scanf("%d", &position); printf("Please enter the value "); scanf("%d", &value); for (c = n - 1; c >= position - 1; c--) array[c+1] = array[c]; array[position-1] = value; printf("Resultant array is "); for (c = 0; c
@Marywanyeki67
@Marywanyeki67 Жыл бұрын
So easy to understand thanks❤️
Deleting an element in an array (C program)
5:14
CSE GURUS
Рет қаралды 61 М.
36 - INSERTION OF AN ELEMENT INTO AN ARRAY AT SPECIFIC POSITION - C PROGRAMMING
15:50
Sundeep Saradhi Kanthety
Рет қаралды 231 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 18 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 12 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 57 МЛН
Campus Tour | Malnad College of Engineering | MCE | Hassan
6:18
Malnad College of Engineering
Рет қаралды 24
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
Program for Inserting element into array in C
13:37
EduFlair KTU CS
Рет қаралды 6 М.
Union Find in 5 minutes - Data Structures & Algorithms
5:46
Potato Coders
Рет қаралды 199 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 809 М.
7. Stair case || Hackerrank || Python
12:50
CSE GURUS
Рет қаралды 69
Asymptotic Analysis (Solved Problem 1)
7:23
Neso Academy
Рет қаралды 429 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 18 МЛН