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 / 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


Please Help Members By Posting Answers For Below Questions

What does sizeof function do?

1257


What is pre-emptive data structure and explain it with example?

3790


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1085


Why is sprintf unsafe?

1132


What is the benefit of using an enum rather than a #define constant?

1323


What is the purpose of the preprocessor directive error?

1316


In c language can we compile a program without main() function?

1179


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

4424


What is the best way of making my program efficient?

1084


Compare array data type to pointer data type

1085


What are high level languages like C and FORTRAN also known as?

1237


Can we use any name in place of argv and argc as command line arguments?

1125


What is meant by keywords in c?

1114


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1268


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1140