how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
Answer Posted / guest
Infinite
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is define c?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
Explain spaghetti programming?
What is variables in c?
What are preprocessor directives in c?
Differentiate between declaring a variable and defining a variable?
What does a pointer variable always consist of?
Explain data types & how many data types supported by c?
What are reserved words?
Why doesnt long int work?
What is formal argument?
What is typedef example?
Why do we use main function?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the meaning of typedef struct in c?