What are the advantages and disadvantages of pointers?
No Answer is Posted For this Question
Be the First to Post Answer
write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
what is an array
Bit swapping
Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.
12 Answers MIT, TCS,
1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.
What is %s and %d in c?
In which area global, external variables are stored?
swap 2 numbers without using third variable?
Can two or more operators such as and be combined in a single line of program code?
int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf("b"); n++; continue; default : printf("c"); break; } break; }
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }