Lets Discuss C - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
letsdiscussc Cover image
letsdiscussc
Lets Discuss C
https://www.study24x7.com/prepare/Computer-Programming
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Private Sector Jobs Computer Programming IIT-JEE Sciences
7 followers study24x7 01 Jun 2021 11:51 AM study24x7 study24x7

What is the output of the below code snippet?

#include<stdio.h> main() { for(;;)printf("Hello"); }

A

 Infinite loop

B

Prints “Hello” once.

C

No output

D

Compile error

study24x7
Write a comment
7 followers study24x7 01 Jun 2021 11:47 AM study24x7 study24x7

What is the role of "r+" on the file "NOTES.TXT" in the given below code?

#include<stdio.h> int main () { FILE *fp; fp = fopen("NOTES.TXT", "r+"); return 0; }

A

"r+" open the file "NOTES.TXT" file for reading

B

"r+" open the file "NOTES.TXT" file for writing

C

"r+" open the file "NOTES.TXT" file for appending

D

"r+" open the file "NOTES.TXT" file for reading & writing both

study24x7
Write a comment
7 followers study24x7 01 Jun 2021 11:46 AM study24x7 study24x7

In the given below code, the function fopen()uses "r" to open the file “source.txt” in binary mode for which purpose?



#include<stdio.h> int main () { FILE *fp; fp = fopen("source.txt", "r"); return 0; }

A

For reading

B

For reading and writing

C

For creating a new file "source.txt" for reading

D

For creating a new file "source.txt" for writing

study24x7
Write a comment
7 followers study24x7 01 Jun 2021 11:44 AM study24x7 study24x7

Turbo C in 16 bit DOS OS, the correct range of “long double” is,

A

3.4E-4932 to 3.4E+4932

B

3.4E-4932 to 1.1E+4932

C

4.1E-4932 to 5.1E+4932

D

0.7E-4932 to 1.8E+4932

study24x7
Write a comment
7 followers study24x7 01 Jun 2021 11:44 AM study24x7 study24x7

What is the output of the following program?

#include<stdio.h> main() { char *s = "Fine"; *s = 'N'; printf("%s", s); }

A

Fine

B

Nine

C

Compile error

D

Runtime error

study24x7
Write a comment
7 followers study24x7 01 Jun 2021 11:43 AM study24x7 study24x7

What is the output of the following program?
#include<stdio.h> main() { printf("\"); }

A

- \

B

- \"

C

- "

D

- Compile error

study24x7
Write a comment
7 followers study24x7 26 May 2021 02:23 PM study24x7 study24x7

What are the various Access Specifiers in C++?

study24x7
Write a comment
  • SAURABH SHARMA
  • Public, private, protacted
    7 followers study24x7 26 May 2021 02:22 PM study24x7 study24x7

    10) What does this declaration mean? int x : 4;  

    A

    X is a four-digit integer.

    B

    X cannot be greater than a four-digit integer.

    C

    X is a four-bit integer.

    D

    None of the these

    study24x7
    Write a comment
    7 followers study24x7 26 May 2021 02:21 PM study24x7 study24x7

    What is a lint?

    A

    C compiler

    B

    Interactive debugger

    C

    Analyzing tool

    D

    C interpreter

    study24x7
    Write a comment
    7 followers study24x7 26 May 2021 02:19 PM study24x7 study24x7

    What will this program print? main()   {     int i = 2;     {       int i = 4, j = 5;  printf("%d %d", i, j);     ...

    See more

    A

    4525

    B

    2525

    C

    4545

    D

    None of the these

    study24x7
    Write a comment
    7 followers study24x7 26 May 2021 02:14 PM study24x7 study24x7

    What is required in each C program?

    A

    The program must have at least one function

    B

    The program does not require any function.

    C

    Input data

    D

    Output data

    study24x7
    Write a comment
    7 followers study24x7 26 May 2021 02:05 PM study24x7 study24x7

    What will be the output of this program?

    A

    Wrong statement

    B

    It will keep on printing javatpoint

    C

    It will Print javatpoint once

    D

    None of the these

    study24x7
    Write a comment
  • SAURABH SHARMA
  • Where is the program?
    7 followers study24x7 26 May 2021 02:04 PM study24x7 study24x7

    What is the 16-bit compiler allowable range for integer constants?

    A

    -3.4e38 to 3.4e38

    B

    -32767 to 32768

    C

    -32668 to 32667

    D

    -32768 to 32767

    study24x7
    Write a comment
    7 followers study24x7 25 May 2021 03:34 PM study24x7 study24x7

    What is the Difference between Class and Structure?

    study24x7
    Write a comment
  • SAURABH SHARMA
  • Can't inherit a structure from another structure The properties of structure can’t be protected.
  • A k
  • Plz guide
    About

    Clear all your C programming doubts, here you will not only get all the updates regarding C programming, but also you can prepare for your interviews and in additional you can discuss any thing with o...
    See More

    Ratings
    0.0
    out of 5
    0 Ratings
    5 study24x7
     
    0.0
    4 study24x7
     
    0.0
    3 study24x7
     
    0.0
    2 study24x7
     
    0.0
    1 study24x7
     
    0.0
    Related Pages

    TET

    66 followers