Answer Posted / yogesh
#include<stdio.h>
int main()
{
char str[40],*s;
char ch,ask;
do
{
s=str;
printf("Enter the string:");
fgets(str,40,stdin);
do
{
printf("%d ",*s++);
}while(*s);
printf("\nDo u want to enter another string
(y/n):");
ask=getchar();
if(ask=='n')
break;
}while((ch=getchar())!='n');
printf("\n");
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
List some of the static data structures in C?
Who is the main contributor in designing the c language after dennis ritchie?
What are linked lists in c?
What is the use of f in c?
What are the data types present in c?
Describe explain how arrays can be passed to a user defined function
What is a function in c?
What does == mean in texting?
What does sizeof return c?
what is the difference between 123 and 0123 in c?
Place the #include statement must be written in the program?
Is c still relevant?
What are two dimensional arrays alternatively called as?