write a program that will print %d in the output screen??

Answer Posted / aditya singh

//wap to print %d on the screen//
#include<stdio.h>
main()
{
char a = '%';
char b = 'd';
printf("%c",a);
printf("%c",b);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restrictions of a modulus operator?

843


Explain 'far' and 'near' pointers in c.

893


What are header files and what are its uses in C programming?

852


Can a variable be both const and volatile?

876


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

828


Why & is used in c?

920


List the difference between a 'copy constructor' and a 'assignment operator' in C?

846


How a string is stored in c?

803


What is the use of getchar() function?

845


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2022


Why doesnt long int work?

799


Write a program to find the biggest number of three numbers in c?

807


What are the types of data types and explain?

853


Do you have any idea how to compare array with pointer in c?

818


Differentiate between calloc and malloc.

1004