Featured
-
No Featured Found!
Tags
Reversing a string without using library function
In this c program we are reversing a string without using library function( Strrev). we are using a temporary variable store for reversing the string.
#include<stdio.h>
#include<string.h>
int main() {
char str[100], s...
Finding frequency of a character in a string
This program is all about finding how many times a character comes in a string. In the program there is a count variable which will be incremented if the same character appears again and then that count variable will be printed.
#include &l...
PASSING ARGUMENT TO A FUNCTION BY REFERENCE IN C
Passing argument to a function by reference is also know as call by reference. In this method if we change the parameter given in the function will effect the argument. For passing a value by reference, we use pointers. As we use pointers in ca...
PASSING ARGUMENT TO A FUNCTION BY VALUE IN C
Passing argument to a function by value is also know as call by value. This method of passing arguments to a function copies the original value of argument into the formal parameter of a function. In other words if we change parameter which are ...
MACROS IN C
MACROS
A macro is a piece of statements(code) which we provide a name or give that piece of statements a name. so whenever we used that name which we provide to that piece of code in the program, that code get replaced by the contents of the...
ARRAY IN C
ARRAY IN C
Arrays is a data structure that can store similar type of data. IN other words an array is a collection of homogenous data (same type of data), which are stored in contiguous memory locations. In an array the first element goes t...