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

What is advantage of pointer in c?

683


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1503


Is c easier than java?

565


Why do we use pointer to pointer in c?

593


What is volatile keyword in c?

577






Why is c still so popular?

613


What are global variables and explain how do you declare them?

568


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

631


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4899


What are lookup tables in c?

546


What does it mean when a pointer is used in an if statement?

596


What is calloc in c?

654


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

574


What does %2f mean in c?

672


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

621