Reading/Writing to One-Dimensional Array Example: int age[5] scanf("%d", &age[0]); //read data from keyboard into array ag...
Read More
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
Searching Problem
This is the problem of finding the given key element in a list of elements. When the key element is found in the list we call Search as Suc...
Read More
Binary Search
If we look at the questions viz. How do we search for a person’s telephone number? If we know only the person’s name. and How difficult is ...
Read More
Program to illustrate the initialization of string.
#include<stdio.h> void main() { char s[4]={'V','T','U'}; //or char s[4]="VTU"; printf("Val...
Read More
STRING INPUT/OUTPUT FUNCTIONS: gets, puts
The strings can be read from the keyboard and can be displayed onto the monitor using following unformatted functions: 1. Unformatted inpu...
Read More
CHARACTER HANDLING LIBRARY FUNCTIONS
Character handling Functions Includes functions to perform useful tests and manipulations on character data. Each function receives a chara...
Read More
Subscribe to:
Posts (Atom)