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 |
Explain union. What are its advantages?
can we declare a variable in different scopes with different data types? answer in detail
What is hungarian notation? Is it worthwhile?
What is optimization in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
When should volatile modifier be used?
Explain what is wrong with this statement? Myname = ?robin?;
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
Why is c faster?
Can a pointer point to null?
plz let me know how to become a telecom protocol tester. thank you.