give an example of type casting by a simple c program
Answers were Sorted based on User's Feedback
Answer / guest
[code]
#include<stdio.h>
main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
[/code]
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / ola
#include<stdio.h>
void main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
| Is This Answer Correct ? | 4 Yes | 4 No |
can we declare a function in side the structure?
what is the difference between declaration and definition of a variable or function ?
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?
Write a program that an operator and two operands read from input operand operator on the implementation and results display.
What is your favorite subject?
1 Answers Ericsson, Invendis, Tech Mahindra,
String concatenation
What language is c written?
how c source file in converted to exe file
What is %d used for?
what is difference between C and C++
What is the use of getchar() function?
Can we write a program without main() function?