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

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

Full Pyramid program | C Language

Full pyramid program and size is given by user



Code :


#include<stdio.h>
#include<conio.h>
/*============================
     Girfa Student Help
     Full pyramid program
==============================*/

Monday 20 July 2020

Table multiplication of given number

Q : Write program to generate multiplication table for first ‘n’  number, where ‘n’ is a user input.


Answer : 



#include<stdio.h>
#include<conio.h>
/*============================
     Girfa Student Help
     Multiplication table of given number
==============================*/

Sunday 19 July 2020

Extern Variable



External variables are used to make global variables. Extern variable defined outside the function. These variables are available globally throughout the function execution. The value of global variables can be modified by the functions. “extern” keyword is used to declare and define the external variables.