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
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
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)
Dont ansi function prototypes render lint obsolete?
is it possible to create your own header files?
Can we access the array using a pointer in c language?
What is zero based addressing?
Give the rules for variable declaration?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
What is the difference between functions abs() and fabs()?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is #line used for?
What are 'near' and 'far' pointers?
write a program to display all prime numbers
Why dont c comments nest?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?