main()
{
extern out;
printf("%d", out);
}
int out=100;
Answer / susie
Answer :
100
Explanation:
This is the correct way of writing the previous program.
| Is This Answer Correct ? | 8 Yes | 1 No |
write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
void main() { int i=5; printf("%d",i++ + ++i); }
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }
main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); }
Program to find the largest sum of contiguous integers in the array. O(n)
main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }
Write a routine that prints out a 2-D array in spiral order
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }