Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between text files and binary files?

1316


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1342


What are compound statements?

1108


What is queue in c?

1053


Explain zero based addressing.

980


Write a simple code fragment that will check if a number is positive or negative.

1118


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2165


Are pointers really faster than arrays?

989


What do you mean by Recursion Function?

1089


Write a program which returns the first non repetitive character in the string?

1075


Which is the memory area not included in C program? give the reason

1912


if p is a string contained in a string?

1809


Write a Program to find whether the given number or string is palindrome.

1248


What are the preprocessor categories?

1015


What is the translation phases used in c language?

1081