#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
Why c is called free form language?
I came across some code that puts a (void) cast before each call to printf. Why?
Can a pointer point to null?
What is size of union in c?
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.
What is volatile variable how do you declare it?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is pass by value in c?
What is the use of printf() and scanf() functions?
Is c is a low level language?
What are valid operations on pointers?
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.
Explain how to reverse singly link list.
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?
What is non linear data structure in c?