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 |
In which layer of the network datastructure format change is done
What is the newline escape sequence?
How can my program discover the complete pathname to the executable from which it was invoked?
what is diference between return 0 and return NULL??
What are the advantages of using new operator as compared to the function malloc ()?
Where is volatile variable stored?
Explain the concept of "dangling pointers" in C.
What is your stream meaning?
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
Why & is used in scanf in c?
What is the 'named constructor idiom'?
What are types of structure?