What will be the output of the following C code? [code] #include <stdio.h> void main() { int i = 0, k; label:

What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int i = 0, k;
        label: printf("%d", i);
        if (i == 0)
            goto label;
    }
A. 0
B. Infinite 0
C. Nothing
D. Error
 
Answer: b
Explanation: None.
This tutorial explains Linux “touch” command, options and its usage with examples.
touch – Change file access and modification time.
DESCRIPTION
touch is a standard Unix program used to change a file’s access and modification timestamps. It is also used to create a new empty file.
SYNOPSIS
touch [-a] [-c] [-m] [-r ref_file | -t time ] file
OPTIONS :
-a
Change the access time of file. Do not change the modification time unless -m is also specified.
-c
Do not create a specified file if it does not exist. Do not write any diagnostic messages concerning this condition.
-m
Change the modification time of file. Do not change the access time unless -a is also specified.
-r
ref_file Use the corresponding times of the file named by ref_file instead of the current time.
-t
time Use the specified time instead of the current time. time will be a decimal number of the form:
[[CC]YY]MMDDhhmm [.SS]
MM – The month of the year [01-12].
DD – The day of the month [01-31].
hh – The hour of the day [00-23].
mm – The minute of the hour [00-59].
CC – The first two digits of the year.
YY – The second two digits of the year.
SS – The second of the minute [00-61].
-f
ref_file Use the corresponding times of the file named by ref_file instead of the current time.
file
A path name of a file whose times are to be modified.
EXAMPLES
 

Tìm kiếm

Back
Top