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

write a C program to print the program itself ?!

Answer Posted / joyab

#include <stdio.h>

int main()
{
char a[] = "int main(){char a[] = %c%s%c; char b = '%c'; printf(a,b,a,b,b);}";
char b = '"';

printf(a,b,a,b,b);
}

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of Macro over function?

1927


What is the difference between far and near ?

1156


What are structures and unions? State differencves between them.

1100


How can a process change an environment variable in its caller?

1128


What are register variables in c?

975


How do I use void main?

1052


What does static variable mean in c?

1060


What is string function in c?

946


What is a class c rental property?

1041


i got 75% in all semester am i eligible for your company

2172


Explain how can I avoid the abort, retry, fail messages?

990


Can a void pointer point to a function?

970


What is an array in c?

1001


What is indirection? How many levels of pointers can you have?

1090


Can you assign a different address to an array tag?

1110