Structures in c A structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient … Continue reading
head 1.2; access; symbols; locks root:1.2; strict; comment @ * @; 1.2 date 2014.03.27.10.38.34; author root; state Exp; branches; next 1.1; 1.1 date 2014.03.26.10.31.39; author root; state Exp; branches; next ; desc @complete program without display fuction @ 1.2 log … Continue reading
access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.25.14.53.42; author root; state Exp; branches; next ; desc @sum of two distances using struct and function @ 1.1 log @Initial revision @ text
1. All these functions gets(),fgets(),getc(),fgetc(),getchar(),ungetc() …are function is declared in the header file stdio.h. 2.gets() :-it takes single argument.The argument must be a data item representing a string. gets() doesn’t allow to specify the length of the buffer to store … Continue reading
head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.19.09.49.44; author root; state Exp; branches; next ; desc @program to read file from n pos @ 1.1 log @Initial revision @ text
head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.19.09.15.04; author root; state Exp; branches; next ; desc @reading form file and writing into another using fgetc() and fputc() @ 1.1 log @Initial revision @ text
head 1.2; access; symbols; locks root:1.2; strict; comment @ * @; 1.2 date 2014.03.15.16.06.03; author root; state Exp; branches; next 1.1; 1.1 date 2014.03.14.06.52.50; author root; state Exp; branches; next ; desc @this is the initial version,file created and open … Continue reading
#include #define size 10 int main() { int arr[size]; int i,j,temp; printf(“Enter the array \n”); for(i=0;i<size;i++) scanf("%d",&arr[i]); printf("The array is :\n"); for(i=0; i < size; i++) printf("arr[%d]:%d\n",i,arr[i]); printf("String after bubble sort "); for(j=0 ; j<size ; j++) { for(i=0 ; … Continue reading
head 1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date 2014.03.14.06.52.50; author root; state Exp; branches; next ; desc @this is the initial version,file created and open using function(). @ 1.1 log @Initial revision @ text @#include”header.h” … Continue reading
head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2014.03.12.12.30.53; author root; state Exp; branches; next ; desc @i have created,read and write a file using function. @ 1.1 log @Initial revision @ text