Top

Discussion

Predict the output of below code:

#include "stdio.h"
#include "stdlib.h"

int main(int argc, char *argv[]) { 
    char temp[20];
    gcvt(23.45,2, temp);
    printf("%s", temp);
    return 0;
}

 

  • A.Output : 0.4
  • B.Output : 24.4
  • C.Output : 25.4
  • D.Output : 23

Answer: D

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment