Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~486 People Reached
Favorite Forums
Favorite Tags
Member Avatar for vineeth vs

pls any one tell me why the loop is not ending?? (program for quick sort)[CODE][/CODE] [CODE]#include<stdio.h> int partition(int a[],int l,int r); void quicksort(int a[],int low,int high); int loc,temp,pivot,a[50],low,high,left,right; int main() { int n,i; printf("\nEnter the no: of elements : " ); scanf("%d",&n); printf("\nEnter the numbers : "); for(i=0;i<n;i++) { printf(" …

Member Avatar for Narue
0
244
Member Avatar for vineeth vs

is it not enough to declare the struct variables as shown?? getting error that some are undeclared pls help... insertion on a binary search tree....[CODE][/CODE] [CODE]#include<stdio.h> #include<stdlib.h> struct node { int data; struct node *lchild,*rchild; }*ptr,*new; void insert(int item,struct node *root) { ptr=root; while(ptr!=NULL) { if(item>ptr->data) { if(ptr->rchild!=NULL) insert(item,rchild); else …

Member Avatar for Narue
0
242