char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ?
(0, ASCII 0, I,unpredictable)
Answer Posted / divakar & venkatesh
u will get the following error
conflicting types for 'S'
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the usage of pointer in c?
What is the purpose of the statement: strcat (S2, S1)?
Where in memory are my variables stored?
How can I find out if there are characters available for reading?
Why is c known as a mother language?
Explain output of printf("Hello World"-'A'+'B'); ?
What is the best organizational structure?
Explain what is the purpose of "extern" keyword in a function declaration?
Can you please explain the difference between malloc() and calloc() function?
What are the advantages of c language?
Why cant I open a file by its explicit path?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
In c programming language, how many parameters can be passed to a function ?
How can I access an I o board directly?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only