Differentiate between a structure and a union.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0

6 Answers   Qualcomm,


What is the meaning When we write "#include" what is # and what does include does there???

22 Answers   HCL, Wipro,


enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); getch(); } what will be the output of the above program

1 Answers  


What will be the outcome of the following conditional statement if the value of variable s is 10?

0 Answers  


Can you explain the four storage classes in C?

0 Answers   TCS,






What is wrong with this initialization?

0 Answers  


What is meant by type casting?

0 Answers  


What are local variables c?

0 Answers  


Write a program for Overriding.

0 Answers  


Write a C program to print 1 2 3 ... 100 without using loops?

15 Answers   Hindalco,


What does stand for?

0 Answers  


Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

2 Answers   Accenture,


Categories