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 / shiv
015 is octal number its decimal equivalent is = 5 * 8 ^ 0 +
1 * 8 ^ 1 = 5 + 8 = 13
0*71 is 0
then finally , a = 13 + 0 + 5 = 18
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is meant by initialization and how we initialize a variable?
Is null a keyword in c?
Is c procedural or functional?
What type of function is main ()?
What is a stream water?
write a program to create a sparse matrix using dynamic memory allocation.
What is 1f in c?
What is wrong with this initialization?
What are local variables c?
How can I read/write structures from/to data files?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What are the complete rules for header file searching?
What are the application of c?
Why & is used in scanf in c?