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
Ranked #44.2K
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags
c x 4
Member Avatar for dhiliptce

[code=cplusplus] #include<stdio.h> #include<stdlib.h> #include<iostream.h> main() { FILE *fp,*fp1; int numbers[30]; char *buffer; int i=0,j; // To read the file fp=fopen("PR1.txt","r"); if(fp==NULL){ printf("Error: can't access file.c.\n"); exit(1); } else { printf("File opened successfully.\n"); for(i=0;i<10;i++) { // while(!feof(fp)) { /* loop through and store the numbers into the array */ printf("Number- %d", …

Member Avatar for rajenpandit
0
117
Member Avatar for lonely_girl
Member Avatar for csurfer
0
1K
Member Avatar for flipjoebanana

Hello, I am trying to as the title says within linux environment within my C program this is what I have so far: [code] int file_out = open(filename_var,O_RDWR|O_CREAT); if((child_pid = fork()) >= 0) /* successful fork */ { if(child_pid == 0) { /* Child process */ close(1); dup(file_out); close(file_out); f(execvp(command_var,command_args) …

Member Avatar for csurfer
0
76
Member Avatar for EvilOrange

I have written this Parser for a formal grammar, to me it looks like it should be ok but when i tried to run it a Segmentation Error comes up - i have run valgrind its got leaks but it does come up with an error. Can anyone spot what …

Member Avatar for mad93
0
123