how to find sum of digits in C?
Answers were Sorted based on User's Feedback
Answer / neha khurana
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("\nEnter the value of any two numbers to be
added\n");
scanf("%d%d",&x,&y);
x=x+y;
printf("%d",x);
getch();
}
| Is This Answer Correct ? | 19 Yes | 55 No |
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,
How important is structure in life?
What kind of structure is a house?
Compare array data type to pointer data type
why we shiuld use main keyword in C
Difference between constant pointer and pointer to a constant.
What are identifiers in c?
What are the characteristics of arrays in c?
How can you tell whether two strings are the same?
write c program to display output 10(10+20)+(10+20+30)+ ... n term
0 Answers Hindustan Gum Chemicals,