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
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are categories used for in c?
What's a good way to check for "close enough" floating-point equality?
What are c preprocessors?
Why is c fast?
What are the different properties of variable number of arguments?
What is memcpy() function?
What are dangling pointers in c?
What does. int *x[](); means ?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
How do we open a binary file in Read/Write mode in C?
Do array subscripts always start with zero?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What's the best way of making my program efficient?
What is a class c rental property?