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 would be the output of the following program?
main()
{
int k = 123;
char *ptr;
ptr = &k;
printf("%d",*ptr);
}

Answer Posted / ankush

i also have a compilation error.....
""Cannot convert 'int_ss*' to 'char*' in function main()""
why its so....???
i want some answer.....
is my compiler wrong....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program to find the sum of five entered numbers using an array named number

2073


How can you check to see whether a symbol is defined?

1042


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

2032


What is the size of array float a(10)?

1087


What is the stack in c?

1077


What is the purpose of void in c?

989


Explain what is the benefit of using enum to declare a constant?

1016


What is getch?

1083


What are the types of i/o functions?

1246


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1720


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1671


What is variable initialization and why is it important?

1158


Explain the difference between malloc() and calloc() in c?

1001


Write a code on reverse string and its complexity.

978


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1012