What is the output of the program given below

#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}

Answer Posted / mohmedali

garbage values

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are variables c?

625


How to implement a packet in C

2401


Is it acceptable to declare/define a variable in a c header?

688


Why is it usually a bad idea to use gets()? Suggest a workaround.

911


How can I remove the leading spaces from a string?

638






What is pointer to pointer in c with example?

554


what are the advantages of a macro over a function?

650


What does c mean in standard form?

602


What is the use of void pointer and null pointer in c language?

633


What is the purpose of 'register' keyword in c language?

631


Is file a keyword in c?

505


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

707


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

4992


How can type-insensitive macros be created?

705


Can the size of an array be declared at runtime?

614