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 |
Write a program to add a given duration with time(24hrs format)
Why is the code below functioning. According to me it MUST NOT.
c program for searching a student details among 10 student details
What is a void pointer in c?
Explain what are global variables and explain how do you declare them?
Why do some versions of toupper act strangely if given an upper-case letter?
Explain that why C is procedural?
What is typedef struct in c?
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed
How is a two dimensional array passed to function when the order of matrix is not known at complie time?