main()
{
int i, j;
scanf("%d %d"+scanf("%d %d", &i, &j));
printf("%d %d", i, j);
}
a. Runtime error.
b. 0, 0
c. Compile error
d. the first two values entered by the user
Answers were Sorted based on User's Feedback
Answer / guest
d) two values entered, 3rd will be null pointer assignment
Is This Answer Correct ? | 3 Yes | 2 No |
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
How to count a sum, when the numbers are read from stdin and stored into a structure?
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?
given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
What is your nationality?
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }