Why doesnt this code work?
No Answer is Posted For this Question
Be the First to Post Answer
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; }
what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is the difference between the local variable and global variable in c?
what does keyword ‘extern’ mean in a function declaration?
how can i sort numbers from ascending order and descending order using turbo c..
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What are Macros? What are its advantages and disadvantages?
Write a program to swap two numbers without using a temporary variable?
What is the meaning of && in c?
What should malloc(0) do?
Explain void pointer?