#include<stdio.h>
#include<math.h>
int main()
{
int num,a,b,c,d,y,k=0;
printf("Enter no.\n");
scanf("%d",&num);
y=num;
for(a=0;a<=num;a++)
{ c=pow(10,a);
d=num/c;
if (d>=1)
k=k+1;
else
break;}
printf(" an aaray of dimension %d" ,k);
int v1[k],v2[k];
int l=0,i,e,f;
for(i=k-1;i>=0;i--)
{
e=pow(10,i);
f=num/e;
v1[l]=f;
l++;
num=num%e;
}
int q,r,t=0,s=0;
q=y;
for(i=k-1;i>=0;i--)
{while(q!=0)
{
r=q%10;
v2[t]=r;
t++;
q=q/10;
}}
for (i=0;i<=k-1;i++)
{if(v1[i]==v2[i])
s++;}
if(s==k)
printf("the no.is palindrome\n");
else
printf("not a palindrome");
return 0;
}
sdfdg
the example of array over charcter variables is char ["string"]
To write a C++ program to display the student details using class and array of object.
If you are using an array : sort using qsort() then take middle element.
You don't have to write palindrome programs in wikipedia.
sdfdg
the example of array over charcter variables is char ["string"]
To write a C++ program to display the student details using class and array of object.
If you are using an array : sort using qsort() then take middle element.
You don't have to write palindrome programs in wikipedia.
Wright a 'C' program for storage representation of 2-D array.
plz as soon as possible give me the program for shorting an array in asscending order without using any sort function in c++
what ever you assume
cod a program student degree array in c language
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
stack abstract datatype
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....