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


Please Help Members By Posting Answers For Below Questions

Are pointers integer?

750


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

3108


Explain what standard functions are available to manipulate strings?

805


How does pointer work in c?

813


When should a type cast be used?

764


How can you read a directory in a C program?

867


How do you determine a file’s attributes?

799


Can you please explain the difference between strcpy() and memcpy() function?

807


Should I learn c before c++?

957


How can I use a preprocessorif expression to ?

777


What is the use of c language in real life?

763


What is modeling?

815


Explain what header files do I need in order to define the standard library functions I use?

857


Explain what is the benefit of using #define to declare a constant?

794


What is the best style for code layout in c?

826