Implement the substr() function in CHere is a C program which implements the substr() function in C.int main(){char str1[] = "India";char str2[25];substr(str2, str1, 1, 3);printf("\nstr2…Read More
Write a C program to reverse a stringThere are a number of ways one can reverse strings. Here are a few of them. These should be enough to impress the interviewer! The methods span from r…Read More
Write your own printf() function in CThis is again one of the most frequently asked interview questions. Here is a C program which implements a basic version of printf(). This is a really…Read More
Write a C program to calculate pow(x,n)?There are again different methods to do this in CBrute force C programint pow(int x, int y){if(y == 1) return x ;return x * pow(x, y-1) ;}Divide and C…Read More
0 comments:
Post a Comment