please tell me the logic for this C program :
INPUT (string):ABCD
OUTPUT :BCDA
CDAB
DABC
Answers were Sorted based on User's Feedback
Write a program in C to convert date displayed in gregorian to julian date
How to define structures? ·
character array A[12] can hold
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
what is the difference between static variable and register variable?
Program to find the sum of digits of a given number until the sum becomes a single digit
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Is multithreading possible in c?
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {4,6,3,1}, {2,9,0,6}}; int *p; int (*q)[4]; p=(int*)a; q=a; printf("\n%u%u",p,q); p++; q++; printf("\n%u%u",p,q); getch(); return 0; } what is the meaning of this program?