What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answers were Sorted based on User's Feedback
Answer / madhu
127.As i is a char the last digit would be 127,so the loop
stops at that point.
I crosschecked it writing a program.
Is This Answer Correct ? | 1 Yes | 9 No |
What are the various topologies? Which one is the most secure?
Do you know the difference between exit() and _exit() function in c?
What is the difference between realloc() and free()
how to return 1000 variables from functio9n in c?plz give me code also
what do you mean by defining a variable in our c code?
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.
Tell me about low level programming languages.
How do you determine the length of a string value that was stored in a variable?
void main() { int i=5; printf("%d",i+++++i); }
what is the need for main function in c?
Q. where is the below variables stored ? - volatile, static, register
What are types of structure?