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 |
Declaration of Cube Guys please help me.. Is this a right way to declare cube.? If i Compile it. It Says: Cube undeclared what should i do? Please help \thanks in advanced #include<stdio.h> #include<math.h> #include<conio.h> main( ) { float x,y; while(x++<10.0) { printf("Enter Number:"); scanf("%d", &x); y = cube(x); printf("%f %f %f \n", x,pow(x,2),y); cube(x); } { float x; float y; y = x*x*x; } getch(); return (y); }
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
Using string functions write a program that will accept the name of the capital as input value and will display the corresponding country. ------------------------ Capitals Countries ------------------------ Capitals Countries Ottawa Canada Moscow Russia Rome Italy I can't not get it to run properly
Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .
UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
What are the different types of errors in C and when they occur?
wap for bubble sort
void main() { int i=7; printf("N= %*d",i,i); }
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,