#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(“%d” ,a[i]);
}
Answer Posted / jayakrishna
here array a is declared but it is not initialised,but int
the printf we are printing values of array a[], so it
displays garbage values & cannot directly write i as
variable we must specify its type.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Tell me is null always defined as 0(zero)?
Explain how can a program be made to print the name of a source file where an error occurs?
What are the different types of endless loops?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
What is the process to create increment and decrement stamen in c?
What is the easiest sorting method to use?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is fflush() function?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Difference between exit() and _exit() function?
How can you call a function, given its name as a string?
Here is a good puzzle: how do you write a program which produces its own source code as output?
regarding pointers concept
What is register variable in c language?
What does return 1 means in c?