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
string reverse using recursion
Where we use clrscr in c?
Explain what is a stream?
What is void c?
Explain what are the __date__ and __time__ preprocessor commands?
Which node is more powerful and can handle local information processing or graphics processing?
Write a program to implement queue.
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
explain what is a newline escape sequence?
What is static memory allocation?
Is a house a shell structure?
What are data types in c language?
What is the scope of static variable in c?
What is calloc()?