EmbLogic's Blog

Author Archives: akanksha.tyagi238

This is a program of adding two distances in feet and inches and then converted their sum in meters and cm using functions.

1 #include<stdio.h> 2 struct distance 3 { 4 int inch; 5 int feet; 6 float meter; 7 float cm; 8 }; 9 void input(struct distance *,struct distance *); 10 int addist(struct distance *,struct distance *,struct distance *); 11 void display(struct … Continue reading

Posted in Uncategorized | Leave a comment

This is a program to compare two text.

head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.03.19.15.25.02;    author emblogic;    state Exp; branches; next    ; desc @This is a program to compare two text. we have checked whether two files are identical or not with … Continue reading

Posted in Uncategorized | Leave a comment

This is a program to read last n characters from the file.

head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.03.19.15.00.37;    author emblogic;    state Exp; branches; next    ; desc @this is a program to read last n chararcter from the file. @ 1.1 log @Initial revision @ text … Continue reading

Posted in Uncategorized | Leave a comment

This is a program to copy the contents of one file into another using fputc.

@This is a program to copy the contents of one file into another using fputc. @ 1.1 log @Initial revision @ text @#include<stdio.h> int main() { FILE *fp1,*fp2; char a; fp1=fopen(“file2″,”r”); if(fp1==NULL) { puts(“cannot open this file”); goto OUT; } … Continue reading

Posted in Uncategorized | Leave a comment

program to print odd and even numbers using array.

head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.03.19.07.00.53;    author Emblinux;    state Exp; branches; next    ; desc @this is a program to find out even and odd numbers. @ 1.1 log @Initial revision @ text @#include<stdio.h> … Continue reading

Posted in Uncategorized | Leave a comment