Learn C Programming

Learn C Programming

Share

This page was made by Anurag Gupta. I would like to help you in C programming. Welcome!

19/10/2017

What is the o/p

int main()
{
printf(" %d ",printf("Happy Diwali"));
return 0;
}

19/10/2017
17/10/2017

What is the output of the following code:

# include
# define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}

05/09/2017

# include
# define scanf "%s Learn C programming"
main()
{
printf(scanf, scanf);
getchar();
return 0;
}

Output: %s Learn C programming Learn C programming

Because of preprocessor macro scanf it will show above output.

05/09/2017


int main()
{
int n;
for(n = 7; n!=0; n--)
printf("n = %d", n--);
return 0;
}

Output:Above program goes in infinite loop because n is never zero when loop condition (n != 0) is checked.

Photos 27/07/2017
Want your school to be the top-listed School/college in Delhi?

Click here to claim your Sponsored Listing.

Location

Category

Telephone

Address


Delhi