pgm to reverse string using arrays i.e god is love becomes
love is god)
(assumption:only space is used for seperation of words)
no addtional memory used.i.e no temporary arrays can used.
Answer Posted / paaru
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char a[20],i;
printf("\n\nEnter the string:");
gets(a);
for(i=strlen(a)-1;i>=0;i++)
{
printf("%d"a[i]);
}
getch();
}
Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is a double c?
What is const and volatile in c?
What is use of integral promotions in c?
How to establish connection with oracle database software from c language?
Explain the difference between #include "..." And #include <...> In c?
Explain about the functions strcat() and strcmp()?
What does the c preprocessor do?
Can we declare variable anywhere in c?
What is meant by preprocessor in c?
what will be maximum number of comparisons when number of elements are given?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How many keywords are there in c?
List some basic data types in c?
How do shell structures work?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password: