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

#include<stdio.h>

char*s="char*s=%c%s%c;main(){printf(s,34,s,34);}";
main()
{
printf(s,34,s,34);
}

Is This Answer Correct ?    25 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are pointers integers in c?

1031


How are 16- and 32-bit numbers stored?

1239


What are the different file extensions involved when programming in C?

1209


What is the size of empty structure in c?

1020


Is it possible to execute code even after the program exits the main() function?

1283


Compare array data type to pointer data type

969


What is memory leak in c?

1065


What are near, far and huge pointers?

1015


What is static and volatile in c?

1177


Explain how can you tell whether a program was compiled using c versus c++?

1057


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1023


Write a program for finding factorial of a number.

1035


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1648


What are the string functions? List some string functions available in c.

950


Explain about C function prototype?

1029