adplus-dvertising
frame-decoration

Question

What will be the output of the program?
#include<stdio.h>

int main()
{
    typedef int LONG;
    LONG a=4;
    LONG b=68;
    float c=0;
    c=b;
    b+=a;
    printf("%d,", b);
    printf("%f\n", c);
    return 0;
}

a.

72, 68.000000

b.

72.000000, 68

c.

68.000000, 72.000000

d.

68, 72.000000

Posted under C Programming

Answer: (a).72, 68.000000

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the program?

Similar Questions

Discover Related MCQs

Q. Which header file should be included to use functions like malloc() and calloc()?

Q. What function should be used to free the memory allocated by calloc() ?

Q. Specify the 2 library functions to dynamically allocate memory?

Q. Which of the following statement is correct prototype of the malloc() function in c ?

Q. What is the return type of malloc() or calloc()?

Q. Which function is used to delete the allocated memory space?

Q. Among 4 header files, which should be included to use the memory allocation functions like malloc(), calloc(), realloc() and free()?

Q. Which of the following is/are true?

Q. Which languages necessarily need heap allocation in the run time environment?

Q. malloc() returns a float pointer if memory is allocated for storing float's and a double pointer if memory is allocated for storing double's.

Q. malloc() allocates memory from the heap and not from the stack.

Q. Where does the uninitialized data gets stored in memory?

Q. malloc() returns a NULL if it fails to allocate the requested memory.

Q. If malloc() successfully allocates memory it returns the number of bytes it has allocated.

Q. Can We increase the size of dynamically allocated array?

Q. Can we increase the size of statically allocated array?

Q. When we dynamically allocate memory is there any way to free memory during run time?

Q. Local variables are stored in an area called ___________

Q. Choose the statement which is incorrect with respect to dynamic memory allocation.

Q. The type of linked list in which the node does not contain any pointer or reference to the previous node: