Write a c program to check whether given no. is palindrome or not using command line Arguments?

Please provide command line arguments program in the comments it will be added on ASAP. Here is the basic C program which is 90% same as what command line program would’ve been.

 

#include<stdio.h>
#include<stdlib.h>
int main(int argc, char* argv[])
{
 int num=atoi(argv[1]);
 if(isPalindrome(num))
 printf("Palindrome");
 else
 printf("Not Palindrome");
 
 return 0;
}
int isPalindrome(int n)
{
 int m=n;
 int rev=0;
 while(m!=0)
 {
 rev=(rev*10) + (m%10);
 m=m/10;
 }
 if(rev==n)
 return 1;
 else
 return 0;
}