main()
{
intj;
while9j<=10)
{
printf("\n%d",j);
j=j+1;
}
}
Answers were Sorted based on User's Feedback
Answer / ritesh kumar
Since variable j is not initialised it will contain garbage
value hence the output(imposed on the while loop condition)
may be unexpected ..
| Is This Answer Correct ? | 13 Yes | 1 No |
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What type of function is main ()?
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.
Is null valid for pointers to functions?
write a program to print data of 5 five students with structures?
#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..
What is auto keyword in c?
How do you determine if a string is a palindrome?
Explain is it better to bitshift a value than to multiply by 2?
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
. A database table called PERSON contains the fields NAME, BASIC and HRA. Write a computer program to print a report which employee name and total salary for those employees whose total salary is more than 10,000. Total Salary = BASIC + HRA. At the end, the program should also print the total number of employees whose total salary is more than 10,000.
what is the use of macro program