A PHP Error was encountered

Severity: Warning

Message: fopen(/var/lib/php/sessions/ci_sessioncbhisi50agg2gulc8k88adgf43i4etp9): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /var/www/interviewmania.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /var/lib/php/sessions)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /var/www/interviewmania.com/index.php
Line: 315
Function: require_once

What will be the output of the following C code? #include

Home » C Programming » Variables » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    register int n = 110;
    int *ptr = &n;
    *ptr = 111;
    printf("%d %d\n", n, *ptr);
    }
    1. 110 111
    2. 111 110
    3. 111
    4. 110
    5. Compilation Error
Correct Option: E

Compilation Error

main.c: In function ‘main’:
main.c:5:9: error: address of register variable ‘n’ requested
int *ptr = &n;



Your comments will be displayed only after manual approval.