char* f()
return "hello:";
void main()
{char *str=f();
}
Answer / parthiban
str will be a pointer to "hello:"
so on printing str will output hello:
| Is This Answer Correct ? | 3 Yes | 2 No |
Given that two int variables, total and amount , have been declared, write a sequence of statements that: initializes total to 0 reads three values into amount , one at a time. After each value is read in to amount , it is added to the value in total (that is, total is incremented by the value in amount ). Instructor's notes: If you use a loop, it must be a for loop. And if you use a loop control variable for counting, you must declare it.
Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
wap for bubble sort
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
How to convert hexadecimal to binary using c language..
1 Answers Bajaj, GAIL, Satyam, Zenqa,
difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?
how to convert decimal to hexadecimal without using arrays just loops
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
char* f() return "hello:"; void main() {char *str=f(); }
WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }