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
What is an identifier?
What is switch in c?
how could explain about job profile
Does c have function or method?
What is the use of c language in real life?
What are examples of structures?
What are the Advantages of using macro
Is fortran still used today?
What are the types of unary operators?
Can 'this' pointer by used in the constructor?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Explain how can I prevent another program from modifying part of a file that I am modifying?
given post order,in order construct the corresponding binary tree
regarding pointers concept