#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(“%d” ,a[i]);
}

Answer Posted / purnima

it gives compile time error because here the var i is not
declared .aIn c a var must be declared before is usage

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called free form language?

572


I came across some code that puts a (void) cast before each call to printf. Why?

678


Can a pointer point to null?

589


What is size of union in c?

580


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1593






What is volatile variable how do you declare it?

566


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

976


What is pass by value in c?

597


What is the use of printf() and scanf() functions?

635


Is c is a low level language?

566


What are valid operations on pointers?

668


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2655


Explain how to reverse singly link list.

606


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

809


What is non linear data structure in c?

577