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 / 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 |
can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?
What are the preprocessor categories?
Which is an example of a structural homology?
Why shouldn’t I start variable names with underscores?
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO
What is volatile in c language?
main() { int a; a=++100; printf("%d",a); getch(); }
Can you please explain the difference between syntax vs logical error?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Explain how does flowchart help in writing a program?