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 is a newline escape sequence?

855


Describe wild pointers in c?

847


What do you mean by recursion in c?

851


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2152


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1133


What are the different types of C instructions?

966


How can you pass an array to a function by value?

826


Describe newline escape sequence with a sample program?

872


What does sizeof function do?

862


How can I find the modification date and time of a file?

815


Why do we use pointer to pointer in c?

801


What do you mean by command line argument?

827


What are the 5 types of inheritance in c ++?

755


Explain the difference between malloc() and calloc() function?

799


What is a struct c#?

774