main()
{
intj;
while9j<=10)
{
printf("\n%d",j);
j=j+1;
}
}

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define VARIABLE?

888


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1703


Explain function?

833


Can a variable be both static and volatile in c?

789


What are examples of structures?

777


Explain the difference between exit() and _exit() function?

879


How do you define a string?

837


Write a program to check palindrome number in c programming?

768


How do you convert strings to numbers in C?

902


What are data types in c language?

777


What is the explanation for modular programming?

879


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

849


What is the difference between break and continue?

890


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5714


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2902