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 / karan
it will display the garbage value bcoz there is semicolon
at end of the for loop which will be
-128
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which is better between malloc and calloc?
using only #include
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Why c language?
What is omp_num_threads?
What is the difference between array and pointer?
What is a macro in c preprocessor?
how do you programme Carrier Sense Multiple Access
What is substring in c?
What is the full form of getch?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
how to build a exercise findig min number of e heap with list imlemented?
What is a pointer in c plus plus?