what ever you assume
/** C Program to Check String is Palindrome using Stack.*/#include #include void push(char);char pop();char stack[100];int top = -1;void main(){char str[100];int i, count = 0, len;printf("Enter string to check it is palindrome or not : ");scanf("%s", str);len = strlen(str);for (i = 0; i < len; i++){push(str[i]);}for (i = 0; i < len; i++){if (str[i] == pop())count++;}if (count == len)printf("%s is a Palindrome string\n", str);elseprintf("%s is not a palindrome string\n", str);}/* Function to push character into stack */void push(char c){stack[++top] = c;}/* Function to pop the top character from stack */char pop(){return(stack[top--]);}
You don't have to write palindrome programs in wikipedia.
It would be easier to manipulate the stack in assembly language rather than C++.
Two little problems: 1. stack doesn't have a flow-chart 2. there are no flow-charts in a C program
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
int pallindrom(int p){ /*write all logic*/ }
/** C Program to Check String is Palindrome using Stack.*/#include #include void push(char);char pop();char stack[100];int top = -1;void main(){char str[100];int i, count = 0, len;printf("Enter string to check it is palindrome or not : ");scanf("%s", str);len = strlen(str);for (i = 0; i < len; i++){push(str[i]);}for (i = 0; i < len; i++){if (str[i] == pop())count++;}if (count == len)printf("%s is a Palindrome string\n", str);elseprintf("%s is not a palindrome string\n", str);}/* Function to push character into stack */void push(char c){stack[++top] = c;}/* Function to pop the top character from stack */char pop(){return(stack[top--]);}
In order to write a program to convert stack into queue using c language you must be able to identify the proper program. Having a special certification in programing will be beneficial as well to make sure you recognize the proper queues for the programs.
Nothing.
You don't have to write palindrome programs in wikipedia.
what are the parts of C language program
It would be easier to manipulate the stack in assembly language rather than C++.
int top=-1; int stack[10];
stack abstract datatype
David Spuler has written: 'Comprehensive C' -- subject(s): C (Computer program language) 'C++ and C efficiency' -- subject(s): C++ (Computer program language), C (Computer program language)
Two little problems: 1. stack doesn't have a flow-chart 2. there are no flow-charts in a C program
find the program in c-pgms.blogspot.com