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
How can I manipulate strings of multibyte characters?
How can I get the current date or time of day in a c program?
Is c procedural or object oriented?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
How do you construct an increment statement or decrement statement in C?
Can you tell me how to check whether a linked list is circular?
How can I remove the trailing spaces from a string?
Define the scope of static variables.
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is an lvalue?
What is restrict keyword in c?
What are the 4 types of organizational structures?
What are the different types of errors?
write a programming in c to find the sum of all elements in an array through function.
Do variables need to be initialized?