answersLogoWhite

0


Best Answer

Use the Exception class and type converters.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you write a C program to check whether a string is an IP address or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to check whether a string follows English capitalization rules?

Active Time spent online


Write a PHP program to check whether the string is palindrome or not?

You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Program to check that given string is palindrome or not in C?

/*To check whether a string is palindrome*/includeincludevoid main () { int i,j,f=0; char a[10]; clrscr (); gets(a); for (i=0;a[i]!='\0';i++) { } i--; for (j=0;a[j]!='\0';j++,i--) { if (a[i]!=a[j]) f=1; } if (f==0) printf("string is palindrome"); else printf("string is not palindrome"); getch (); }


Write a program that stores vowels in an array When you program is given a character it should indicate whether the character is vowel or not?

That's easy to do!This script will get the POST data from an HTML form and check if it is a vowel.


What are the explanation steps for palindrome program?

If you want to check whether a string is a palindrome, you can reverse the string (for example, the Java class StringBuffer has a reverse() method), and then compare whether the two strings - the original string and the reverted string - are equal. Alternately, you could write a loop that checks whether the first character of the string is equal to the last one, the second is equal to the second-last one, etc.; that is, you have a counter variable (in a "for" loop) that goes from zero to length - 1 (call it "i"), and compare character #i with character #(length-i-1) inside the loop.


What determines whether a check is an out-of-state-check or not--is it the account holder's address or the bank's address?

The bank where the account was opened. Typically the bank address on the check.


How do you write a program in C to check whether a word is a palindrome or not?

It is a simple program. i think u may understand it :#include#include#includevoid main(){char s[10]=answers.com;char x[10];int a;clrscr();strcpy(x,s);strrev(s);a=strcmp(s,x);if(a==0){printf("the entered string is palindrome");}else{printf("the entered string is not palindrome");}output:given string is not palindrome


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


What is a Desk check trace table?

Going through a program on paper to check whether it has errors.


How is a plumb bob used to check the vertical of a building under construction?

A plumb bob is a weight on the end of a string. It usually has a pointed lower end. It is hung adjacent to or in line with building elements to check whether they are "plumb" or "true to the vertical". A weight on a string holds the string under tension in a straight line down to the ground because of gravity. A person can move so they can see whether the straight line of the string lines up against the built element, to tell whether it is vertical.


Write a Java Program to find occurences of given word in a text?

Check the documentation of the String class, for a method that searches for a substring.