#include<stdio.h>#include<conio.h>#include<string.h>struct emp{ char name[10]; int age; }; File handling concept void NameAndAgeStoring(){ struct emp e; FILE *p, *q; p= fopen(“list.txt”,”a”); q= fopen(“list.txt”,”r”); printf(“enter the name and age”); scanf(“%s %d”,e.name,e.age); fprintf(p,”%s %d”,e.name,e.age); fclose(p); do{ fscanf(q,”%s %d”,e.name,e.age); printf(“%s %d”,e.name,e.age); } while(!feof(q)); getch();} Read More …
Tag: MCS011
Important program in C
#include<stdio.h>#include<conio.h>#include<string.h>struct emp{ char name[10]; int age; }; File handling concept void NameAndAgeStoring(){ struct emp e; FILE *p, *q; p= fopen(“list.txt”,”a”); q= fopen(“list.txt”,”r”); printf(“enter the name and age”); scanf(“%s %d”,e.name,e.age); fprintf(p,”%s %d”,e.name,e.age); fclose(p); do{ fscanf(q,”%s %d”,e.name,e.age); printf(“%s %d”,e.name,e.age); } while(!feof(q)); getch();} Read More …
Important program in C
#include<stdio.h> #include<conio.h> #include<string.h> struct emp{ char name[10]; int age; }; File handling concept void NameAndAgeStoring(){ struct emp e; FILE *p, *q; p= fopen(“list.txt”,”a”); q= fopen(“list.txt”,”r”); printf(“enter the name and age”); scanf(“%s %d”,e.name,e.age); fprintf(p,”%s %d”,e.name,e.age); fclose(p); do{ fscanf(q,”%s %d”,e.name,e.age); printf(“%s %d”,e.name,e.age); Read More …
IGNOU MCS-011 Solved Paper June 2014
1 (a). Write a C program to find the factorial value of a number. Also write the algorithm and draw flowchart. Ans. /*c program to find out factorial value of a number*/#include<stdio.h>#include<conio.h>int main(){ int n,i,fact=1; printf(“Enter any number : “); scanf(“%d”, &n); for(i=1; i<=n; i++) fact Read More …
IGNOU MCS-011 Solved Paper June 2014
1 (a). Write a C program to find the factorial value of a number. Also write the algorithm and draw flowchart. Ans. /*c program to find out factorial value of a number*/#include<stdio.h>#include<conio.h>int main(){ int n,i,fact=1; printf(“Enter any number : “); scanf(“%d”, &n); for(i=1; i<=n; i++) fact Read More …
IGNOU MCS-011 Solved Paper June 2014
1 (a). Write a C program to find the factorial value of a number. Also write the algorithm and draw flowchart. Ans. /*c program to find out factorial value of a number*/ #include<stdio.h> #include<conio.h> int main() { int n,i,fact=1; printf(“Enter any number Read More …
Exam Papers Filtered from Ignou.ac.in
a{ color:blue; } Paper MCS-011 MCS-012 MCS-013 MCS-014 MCS-015 MCS-011 Problem Solving and Programming June 2015 MCS-012 Computer Organisation & Assembly Language Programming June 2015 MCS-013 Discrete Mathematics June 2015 MCS-014 Systems Analysis and Design June 2015 MCS-015 Communication Skills June 2015 Read More …
Exam Papers Filtered from Ignou.ac.in
a{ color:blue; } Paper MCS-011 MCS-012 MCS-013 MCS-014 MCS-015 MCS-011 Problem Solving and Programming June 2015 MCS-012 Computer Organisation & Assembly Language Programming June 2015 MCS-013 Discrete Mathematics June 2015 MCS-014 Systems Analysis and Design June 2015 MCS-015 Communication Skills June 2015 Read More …
Exam Papers Filtered from Ignou.ac.in
a{ color:blue; } Paper MCS-011 MCS-012 MCS-013 MCS-014 MCS-015 MCS-011 Problem Solving and Programming June 2015 MCS-012 Computer Organisation & Assembly Language Programming June 2015 MCS-013 Discrete Mathematics June 2015 MCS-014 Systems Analysis and Design June 2015 MCS-015 Communication Skills June 2015 Read More …
Exam Papers Filtered from Ignou.ac.in
a{ color:blue; } Paper MCS-011 MCS-012 MCS-013 MCS-014 MCS-015 MCS-011 Problem Solving and Programming June 2015 MCS-012 Computer Organisation & Assembly Language Programming June 2015 MCS-013 Discrete Mathematics June 2015 MCS-014 Systems Analysis and Design June 2015 MCS-015 Communication Skills June 2015 Read More …