Archive for data structures questions and answers

You are browsing the archives of data structures questions and answers.

Technical/logical interview questions in C language –freshers must read it!!

1. What type of memory could be accessed in least time?
(a)cache memory
(b)secondary memory
(c)main memory
(d)none
Ans:A

2. void main()
 
{
 
int const * p=5;
 
printf("%d",++(*p));
 
}

What is the output?
(a) 6
(b) 5
(c) [...]

Important programs in c language part-III

/*initialising the arrray*/

#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i;
clrscr();
printf("Enter the array");
for(i = 0;i <=9;i ++)
{
scanf("%d",&a[i]);
}
printf("The entered array is");
for(i = 0;i <=9; i++)
{
printf("%d\n",a[i]);
[...]