Answer Posted / shruti
to print numbers which are even from 0 to 100
main()
{
int i;
puts("THE EVEN NUMBERS ARE:");
for(i = 0 ; i <= 100 ; i++)
{
if(i%2 == 0)
printf("%d", i);
}
}
| Is This Answer Correct ? | 23 Yes | 14 No |
Post New Answer View All Answers
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is external variable in c?
What is typeof in c?
What is the maximum no. of arguments that can be given in a command line in C.?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What are the advantages of using Unions?
Simplify the program segment if X = B then C ← true else C ← false
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Can you define which header file to include at compile time?
provide an example of the Group by clause, when would you use this clause
can we change the default calling convention in c if yes than how.........?
Can one function call another?
What is a protocol in c?
What is page thrashing?
In c programming language, how many parameters can be passed to a function ?