Sir , Can you plz answer this question? Consider the C++ code of a sort algorithm given below. If array showing in table is passed to sorting algorithm, then what will be the index of “29” after execution of code? void mySort(int *arr, int N) {
int temp;
for (int i = 0; i < N - 1; i++) { int min = i;
for (int j = i + 1; j < N; j++) { if (arr[j] < arr[min]) min = j; }
if(i == 3) break; } } 29 27 18 13 87 66 52 51 12 36 0 1 2 3 4 5 6 7 8 9 Give only one index, giving more than one indexes will be considered incorrect solution.
@@KSTLearning bhai aik video bs bna dyn bs imp topics py plzzzz plzzz ksi k lectures b nhi thek cs401 k ap plzz bna dyn video or ye b pochna tha k cs401 k practical mai sirf assembly program he aty kya?
I am watching this video 2 hours before my paper
❤❤❤
Paper kesa hua kis type k question thy plzz reply
@@gulrukh1752 it was good mai ny already rply kiya tha kisi msg pr ap check kr lay
@@gulrukh1752 lec no 23 k comments check kar lay
I was watching this playlist till 2 mints before my paper
sir cs403 ki assignment 2 ka solutin upload kr deinnn
Kar diya
Sir , Can you plz answer this question?
Consider the C++ code of a sort algorithm given below. If array showing in table is
passed to sorting algorithm, then what will be the index of “29” after execution of code?
void mySort(int *arr, int N) {
int temp;
for (int i = 0; i < N - 1; i++) {
int min = i;
for (int j = i + 1; j < N; j++) {
if (arr[j] < arr[min])
min = j;
}
temp = arr[min];
arr[min] = arr[i];
arr[i] = temp;
if(i == 3)
break;
}
}
29 27 18 13 87 66 52 51 12 36
0 1 2 3 4 5 6 7 8 9
Give only one index, giving more than one indexes will be considered incorrect solution.
position 8
@@KSTLearning thanks alot sir I had just to confirmed...8 was right answer or not so i asked... 🙏
bhai CS401 k final term k lectures thory buhtt explain kr dyn ab to kch din he hn papers mai
us k ku ni lectures krwaye ap ny plzz krwa dyn
janab ab to time nahi
@@KSTLearning bhai aik video bs bna dyn bs imp topics py plzzzz plzzz ksi k lectures b nhi thek cs401 k ap plzz bna dyn video or ye b pochna tha k cs401 k practical mai sirf assembly program he aty kya?
@@affiliatemarketer_2smart woek zone k lecture best h 401 k ly
faisal kaleem k lecture lyn us sy prepration ho gye gi
AP Ny ADT ki Example ma Kamoke Gujranwala Ka Name liya AP kiya Kamoke Sy ho please Tell Me
yes
@@KSTLearning lo Ma B Kamoke Sy Hu. Location kiya. Or Rat ko Whatsapp pa picture send ki thi Half Man Encoding ki Us k bary ma b guide kar do
@@salmanchand4902 Telenor Microfinance Bank Kamoke
Walaikum Salam
AoA sir g cs506 k short lectures upload krn plz
G Insha Allah after 5 days
Kamoki Is my City
And your?
Yes