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
~589 People Reached
Favorite Forums
Favorite Tags
Member Avatar for linkingeek

Could you please tell pictorially difference bw these 2 codes(o/p is same) and suggest any source where i can once in for all resolve doubts in pointer to pointer problems except "K&R in ANSI C" [CODE]#include <stdio.h> #include <string.h> void pointer(char**); void main() { char *p[]={"name","fame","claim"}; pointer(p); } void pointer(char …

Member Avatar for versan
0
149
Member Avatar for dineshswamy

i did a simple bubble sort but it is ot working . help me out. [CODE] #include<stdio.h> main() { int i,j,k; int a[]={7,9,4,2,3,6}; for(i=0;i<7;i++) for(j=i+1;j<7;j++) if(a[j]<a[j-1]) { k=a[j]; a[j]=a[j-1]; a[j-1]=k; } for(i=0;i<7;i++) printf("a[%d]==>%d",i,a[i]); } [/CODE]

Member Avatar for dineshswamy
0
107
Member Avatar for linkingeek

Here is a code for writing a text file from console but i have problem regarding its portability. [CODE]import java.io.*; class KtoD { public static void main(String args[]) throws IOException { String str; FileWriter fw; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); try { fw = new FileWriter("test.txt"); } catch(IOException …

Member Avatar for jon.kiparsky
0
113
Member Avatar for linkingeek

Here i am posting again the program for creating the table of contents which are filled according to the user with dynamic arrays but yet the problem regarding the output is not solved ,i know dry run is correct , compilation is free from errors and warnings,builtable() function is working …

Member Avatar for linkingeek
0
115
Member Avatar for linkingeek

Here is the code building a table of contents which i felt correct from every sense but output is somewhat unsatisfactory. [code=c] #include<stdio.h> #include<limits.h> #include<stdlib.h> int**buildtable(void); void filltable(int**table); void processtable(int**table); int smaller(int first,int second); int larger(int first,int second); int rowMinimum(int*rowPtr); int rowMaximum (int*rowPtr); float rowAvg(int*rowPtr); int main() {int**table; table=buildtable(); filltable(table); …

Member Avatar for linkingeek
0
105