What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
int f(char c, ...);
int main()
{
char c = 97, d = 98;
f(c, d);
return 0;
}
Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument?
printf(“\n Output: %5d \t %x \t %#x”, 234,234,234);
char str[] = "Hello Nancy“;
printf(“\n %.7s”, str) ;
What will be the output of the program
#include<stdio.h>
void fun(int);
int main(int argc)
printf("%d ", argc);
In linux, argv[0] by command-line argument can be occupied by _________
Which of the following syntax is correct for command-line arguments?
What is the index of the last argument in command line arguments?
What will be the output of the following C code (if run with no options or arguments)?
int main(int argc, char *argv[])
printf("%d\n", argc);
What will be the output of the following C code (run without any command line arguments)?
while (argv != NULL)
printf("%s\n", *(argv++));