File Handling in C

The following program demonstrate how we to perform read and write operations on files, We can create and open a file w+ (write plus) mode, this will open a file if it exists otherwise create a new file and open it in write mode ...

January 3, 2015 · 1 min · Zeeshan Khan

Pointers in C

Pointers are variables that stores the reference (address) of a data value, datatype of pointers represent what kind of values they can hold reference of, however, a pointer of type void can hold reference of any datatype, but explicitly type casting is required to use them. The code below will demonstrate how we can use pointers in C # include<stdio.h> int main(){ int *pnum, num; printf("Enter a number\n"); scanf("%d", &num); pnum = &num; // now you can modify the value from pnum as well as num....

January 2, 2015 · 1 min · Zeeshan Khan