Reading/Writing to One-Dimensional Array Example: int age[5] scanf("%d", &age[0]); //read data from keyboard into array ag...
Read More
Showing posts with label major componenets of modern computer system. Show all posts
Showing posts with label major componenets of modern computer system. Show all posts
program to find maximum element in an array of n integer elements
#include<stdio.h> int main () { int a[50],n,max, i; printf(“\n\tEnter the number of elements: “); scanf(“%d”,&n); printf(“\...
Read More
Pointers and Strings
The arrays are implicitly treated as pointers. And the strings are array of characters terminated by NULL character. Hence a pointer to cha...
Read More
STRING MANIPULATION FUNCTIONS FROM THE STANDARD LIBRARY
Strings are often needed to be manipulated by programmer according to the need of a problem. All string manipulation can be done manually b...
Read More
FUNCTION IN C
A complex problem is often easier to solve by dividing it into several smaller parts(pieces), each of which can be solved by itself. Each s...
Read More
Subscribe to:
Posts (Atom)