Why doesnt this code work?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

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; }

2 Answers  


what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }

4 Answers  


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

0 Answers  


What is the difference between the local variable and global variable in c?

0 Answers  


what does keyword ‘extern’ mean in a function declaration?

1 Answers   Emerson,






how can i sort numbers from ascending order and descending order using turbo c..

1 Answers  


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

0 Answers   Wilco,


What are Macros? What are its advantages and disadvantages?

0 Answers   TCS,


Write a program to swap two numbers without using a temporary variable?

0 Answers   Infosys,


What is the meaning of && in c?

0 Answers  


What should malloc(0) do?

0 Answers  


Explain void pointer?

0 Answers  


Categories