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
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is use of bit field?
In a switch statement, what will happen if a break statement is omitted?
What is the difference between variable declaration and variable definition in c?
What are the valid places to have keyword “break”?
What is enumerated data type in c?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is the use of a ‘ ’ character?
Explain what is a const pointer?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is memcpy() function?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is pass by value in c?
Write a program to find factorial of a number using recursive function.