please tell me the logic for this C program :
INPUT (string):ABCD
OUTPUT :BCDA
CDAB
DABC
Answers were Sorted based on User's Feedback
Does c have function or method?
why wipro wase
What is the use of volatile?
Why cant I open a file by its explicit path?
Explain following declaration int *P(void); and int (*p)(char *a);
compare array with pointer?
Write a program which returns the first non repetitive character in the string?
suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan
Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
Is it better to use a macro or a function?
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,