what will be the output off the following program?
#include<stdio.h>
int main()
{
int a;
a=015+0*71+5;
printf("%d,a");
return0;
}
Answer Posted / uma
printf("%d,a"); this gives an error like a value never
used..or if printf statement like printf("%d",a); then it
gives 18 as the answer because 015 is the octal number and
0*71 is 0.
so a=13+5
a=18;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how to print the character with maximum occurence and print that number of occurence too in a string given ?
How to implement a packet in C
What are the string functions? List some string functions available in c.
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Explain the use of #pragma exit?
What is dangling pointer in c?
What are data types in c language?
What are the advantages and disadvantages of a heap?
What is the use of function in c?
What is the correct code to have following output in c using nested for loop?
Explain why C language is procedural?
Why do we use int main?
what do the 'c' and 'v' in argc and argv stand for?
Write a Program to accept different goods with the number, price and date of purchase and display them
Explain how do you print only part of a string?