Objects and Classes - Programming

Q1:

What will be the output of the following program?
#include<iostream.h>
#include<string.h> 
class AptitudeCrack
{
    int val; 
    public:
    void SetValue(char *str1, char *str2)
    {
        val = strcspn(str1, str2);
    }
    void ShowValue()
    {
        cout<< val;
    } 
};
int main() 
{
    AptitudeCrack objAptitude;
    objAptitude.SetValue((char*)'India', (char*)'Aptitude'); 
    objAptitude.ShowValue(); 
    return 0; 
}

A 2

B 3

C 5

D 8

ANS:A - 2

No answer description is available. Let's discuss.