Introduction to ArtificiaI Intelligence in Higher Education
Aloha paper for cdac ccpp
1. Aloha Paper for CDAC CCPP
Q1. Write a program to reverse given string (complete the function)
Char * ReverseSting(char* ps2string){
}
Q2. Write a recursive function which will compute sum of digits no (complete the function)
Int sumofDigits(int n){
}
Q3. Write a constructor of following class
Class student{
char* m_s2Name;
int m_nRollNo;
float m_fpersentage;
};
Q4 . implement a function to find weather more bits are On at even position in comparison with
odd position for giving number(complete the function)
Bool CompleteSetBits(int s){
}
Q5. Write a function to trim/clear/remove the trailing blanks tabs and newline from the giving string
(complete the function)
Char* TrimString (char * ps2Input) {
}