Category: Language

23
May
2017

Read Content from Text file using C

code: #include<stdio.h> int main() { FILE *fp; fp=fopen(“E:/nosemsters/codes/crefresh/crefresh/c_for_technical_interview_udemy_course/file pointer/b.txt”,”r”); if(fp==NULL) { printf(“unable to open file”); return 0;…

23
May
2017

File Handling in C

code: #include<stdio.h> int main() { FILE *fp; fp=fopen(“E:/nosemsters/codes/crefresh/crefresh/c_for_technical_interview_udemy_course/file pointer/a.txt”,”w”); if(fp==NULL) { printf(“Unable to open file\n”); return 1;…

23
May
2017

Arguments from Command Line Console

code: #include<stdio.h> int main(int argc, char **argv) //default parameter { printf(“hello world\n”); printf(“ARGC=%d\n”,argc); int i; for(i=0;i<argc;i++) {…

22
May
2017

Problem 85: Product

Create a structure named Product with following two fields- 1. name (string) 2. price (double) Then create…

22
May
2017

Struct Problem 1: 101cproblems

Problem 81: Struct GPA Create a simple structure named Student that holds the following variables- i. id…

21
May
2017

Typedef Enum Union Project

code: #include<stdio.h> typedef union { double weight; int size; char color[10]; } Description; typedef struct { int…