main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output?
Answer Posted / fazlur rahaman naik
actually the output will b : India only.
the above programme doesn't produce any error at if(a =
0).because we r assiging value here, we r not comparing the
value here.so the condition will fail here and the next
statement after if condition will print.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Are there any problems with performing mathematical operations on different variable types?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Is c is a low level language?
in linking some of os executables are linking name some of them
how could explain about job profile
How to throw some light on the b tree?
How important is structure in life?
List the difference between a "copy constructor" and a "assignment operator"?
What are the three constants used in c?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the -> in c?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Explain what is the difference between #include and #include 'file' ?
What is local and global variable in c?
What is the difference between functions getch() and getche()?