No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by … |
|
Re:
Here is the code for [B][COLOR="Red"]Insertion Sort, Bubble Sort and Selection Sort[/COLOR][/B] [B]Insertion Sort[/B] [CODE] #include <stdio.h> main() { int i,j,key; int a[5]={5,2,3,4,1}; for(i=1;i<5;i++) { key=a[i]; while(i>0 && a[i-1]>key) { j=a[i]; a[i]=a[i-1]; a[i-1]=j; --i; } } int k; for(k=0;k<5;k++) {printf("%d ", a[k]);} printf("\n"); } [/CODE] [B]Bubble Sort[/B] [CODE] #include <stdio.h> … |
|
What is the difference between access modifier, modifier and qualifier? It's a competition exam question. and is a very important question from exam point of view. plz help me to get the answer of this question. |
|
what is accessor and mutator ?? and what is overloading of accessor and mutator?? Plz explain... |
|
Re:
how a single linked list can be sorted by swapping the pointers?? |
|
Hey I am a student and i m performing selection sort in this way. Is it proper way or not? if it is not proper, explain it why with reason. #include<stdio.h> #include<conio.h> void selection(int a[],int n) { int i,j,temp; for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=a[i]; } } … |
|
Re:
I have just started learn HTML. Please suggest me any website. |