Program to design list in c, C/C++ Programming

Program to design list in c:

Write a program in c to insert the values in list

void main()

{

int i=0;

char a[20];

clrscr();

printf("Enter the line\n");

 

while((int)a[i]!=13)

{

scanf("%c",a[i]);printf("%c %d",a[i],i+1);

 

i++;

}

printf("%s",a);

getch();

}

Posted Date: 10/19/2012 2:54:29 AM | Location : United States







Related Discussions:- Program to design list in c, Assignment Help, Ask Question on Program to design list in c, Get Answer, Expert's Help, Program to design list in c Discussions

Write discussion on Program to design list in c
Your posts are moderated
Related Questions
New data members  New member functions  New constructors and destructor  New friends

write a c++ program for the sum of 10 numbers and print out the average

Encapsulation and Data Hiding The property of being a self-contained unit is known as encapsulation. The idea that the encapsulated unit can be used without knowing how it work

Although we can handle most I/O routines with getc and putc , there are file versions of fgets, fputs, fprintf and fscanf . The syntax is       fgets(stringname,n,filename);   Th

Expected output of the program: 1. Consider the following programs. For each, indicate whether the program is correct. If yes, what is the expected output? If not, what is the

padovan string program in java // aakash , suraj , prem sasi kumar kamaraj college program 1 : package test.padovanstring; public class PadovanString {     publ

Write a program that accepts two real numbers from a user and a select code. If the entered select code is 1, have the program add the two previously entered numbers and display t

how to search, display all data and delete data

Depreciation to a salvage value of 0. For tax purposes an item may be depreciated over a period of several years, n. With the straight line method of depreciati

HOW CAN WE EASLY LEARN C++