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 |
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?
4 Answers Amazon, Apple, Bata, Google, NASA,
#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..
Can we declare variables anywhere in c?
What is the purpose of ftell?
Is it possible to run a c program without using main?If yes HOW??
Explain what is the benefit of using enum to declare a constant?
Distinguish between actual and formal arguments.
What are function pointers? Provide an example.
Toggle nth bit in a given integer - num
Write a program to know whether the input number is an armstrong number.
What are # preprocessor operator in c?