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

Answer Posted / kalyan chukka

Here it shows i is undefined Symbol.So if declare i as
integer then it prints some garbage value Because Array is
declared but elements are not inserted into the array.So
garbage value is printed on the console

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main characteristics of c language describe the structure of ac program?

615


What are global variables and explain how do you declare them?

582


Can the sizeof operator be used to tell the size of an array passed to a function?

622


Explain what is the use of a semicolon (;) at the end of every program statement?

740


Define macros.

787






to find the closest pair

1825


Does c have enums?

604


What is the acronym for ansi?

634


write a program to concatenation the string using switch case?

1562


What is a structure and why it is used?

623


What is the data segment that is followed by c?

617


What is a method in c?

630


What are bitwise shift operators in c programming?

650


When should the register modifier be used? Does it really help?

620


What is the difference between int main and void main?

578