Thursday, 23 July 2020

Dynamic Memory allocation | Input | Print Ascending Order program | C Language

 Q : Write a program using dynamic memory allocation to read numbers as input and display them in sorted order thereafter.

Answer :


#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
/*============================
     Girfa Student Help
     Dynamic array and ascending print
==============================*/
void main()
{

Wednesday, 22 July 2020

String Concatenation without library function | C Language

Q : Write a program to concatenate two strings. (Do not use inbuilt string function).


Answer : 



#include<stdio.h>
#include<conio.h>
/*============================
     Girfa Student Help
     Concatenation string
==============================*/

Find Largest number from array using function program | C Language

Q : Write a program to input a set of numbers into an array. Pass the array to a function that finds and display the  largest number.?


Answer : 



#include<stdio.h>
#include<conio.h>
/*============================
     Girfa Student Help
     Find largest no. in array using function
==============================*/
void find(int ar[5]);

Tuesday, 21 July 2020

Structure record input-read in file | C Langauge

Q : Write a program to write records of students in a file, where each record consists of student name, roll number, CGPA, and address. Read the records back from the file and display them.

Code : 

#include<stdio.h>

#include<conio.h>

/*============================

     Girfa Student Help

     Structure write back to file

==============================*/