String copy logic in one line.
Answers were Sorted based on User's Feedback
#include<stdio.h> void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void fun(int i) { if(n>0) { fun(--n); printf("%d",n); fun(--n); } } the answer is 0 1 2 0..someone explain how the code is executed..?
#define a 10 int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } void foo() { #undef a #define a 50 }
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
How can you relate the function with the structure? Explain with an appropriate example.
write the function. if all the character in string B appear in string A, return true, otherwise return false.
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
What are segment and offset addresses?
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }