1. Can we use the for loop this way?
for(;i>5;)
2. What is the use of pointers?
3. what is array of pointer?
4. What is the difference between file and database?
5. Define data structure?

Answer Posted / ajitha m.s.

1. This method is false and the correct syntax is
for(initialisation;condition;increment/decrement)
example: for(i=0;i<n;i++)

2.pointers are used to specify address of an element

3.Array of pointers are used to point to an array of data
items with each element of the pointer array pointing to
an element of the data array.

4.A file is a collection of bytes stored together.
database is a collection of tables and each table holds
fields as well as records.

5.Data structure is a particular way of storing and
organizing data in a computer.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a nested loop?

653


Are the variables argc and argv are always local to main?

576


Explain what is a pragma?

596


Explain why c is faster than c++?

578


Explain what is the difference between a string and an array?

640






When the macros gets expanded?

792


How do you search data in a data file using random access method?

839


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1494


How can you tell whether a program was compiled using c versus c++?

622


Explain what is the most efficient way to store flag values?

702


Where we use clrscr in c?

709


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2521


Is it possible to initialize a variable at the time it was declared?

758


What is c system32 taskhostw exe?

597


What is LINKED LIST? How can you access the last element in a linked list?

636