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 pointers integer?
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.
Explain what standard functions are available to manipulate strings?
How does pointer work in c?
When should a type cast be used?
How can you read a directory in a C program?
How do you determine a file’s attributes?
Can you please explain the difference between strcpy() and memcpy() function?
Should I learn c before c++?
How can I use a preprocessorif expression to ?
What is the use of c language in real life?
What is modeling?
Explain what header files do I need in order to define the standard library functions I use?
Explain what is the benefit of using #define to declare a constant?
What is the best style for code layout in c?