#include<stdio.h>
main()
{
register i=5;
char j[]= "hello";
printf("%s %d",j,i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
hello 5
Explanation:
if you declare i as register compiler will treat it as
ordinary integer and it will take integer value. i value may
be stored either in register or in memory.
Is This Answer Correct ? | 2 Yes | 0 No |
Write a program to print a square of size 5 by using the character S.
Derive expression for converting RGB color parameters to HSV values
how can i cast a char type array to an int type array
#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }
void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }
In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
Is the following code legal? struct a { int x; struct a *b; }
write a program for area of circumference of shapes
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
void main() { int i=5; printf("%d",i+++++i); }