What is the usage of the pointer in c?
No Answer is Posted For this Question
Be the First to Post Answer
what is self refrential structure
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
how to find anagram without using string functions using only loops in c programming
code for concatination of 2 strings with out using library functions?
How can I do graphics in c?
what is the function of void main()?
How to swap 3 numbers without using 4th variable?
how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48
If fflush wont work, what can I use to flush input?
What are the different types of objects used in c?
What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }