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?



1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is arr..

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

Post New Answer

More C Interview Questions

Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


Why is the code below functioning. According to me it MUST NOT.

1 Answers  


c program for searching a student details among 10 student details

0 Answers  


What is a void pointer in c?

0 Answers  


Explain what are global variables and explain how do you declare them?

0 Answers  


Why do some versions of toupper act strangely if given an upper-case letter?

0 Answers  


Explain that why C is procedural?

0 Answers   Maveric, Verifone,


What is typedef struct in c?

0 Answers  


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;..}

4 Answers   TCS,


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


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

4 Answers   Aspire,


How is a two dimensional array passed to function when the order of matrix is not known at complie time?

1 Answers   CSC,


Categories