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 / sakthi
the function should not return any value.
or
-113
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Describe the difference between = and == symbols in c programming?
What is the deal on sprintf_s return value?
What is the process to create increment and decrement stamen in c?
What is the difference between a function and a method in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Sir i need notes for structure,functions,pointers in c language can you help me please
How can you invoke another program from within a C program?
What is a #include preprocessor?
What are header files and explain what are its uses in c programming?
Why we use conio h in c?
Is a house a shell structure?
Write a program to check whether a number is prime or not using c?
What is a memory leak? How to avoid it?
Explain what are header files and explain what are its uses in c programming?
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.