hi rachita ,

i am not sure what you mean , but i think it is pretty easy to compare 
two strings , something like this :

if(strcmp(<input variable > ,"<pattern to be matched>")==0){
       then something ;
}
 else {
          something ;
}


or for comparing two integers , it can be like :
if(i==4){
    then something ;
}
else{
    something ;
}


Satish  


rachita332004 wrote:
>
> Hi i am a BTech 2nd year student.I wanted to know how to validate user
> input like name and number in C program.
>
> Thanks in advance.
>
>  



[Non-text portions of this message have been removed]

Reply via email to