#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 |
main() { int i=400,j=300; printf("%d..%d"); }
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }
Write a program that find and print how many odd numbers in a binary tree
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
main() { struct date; struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
Is it possible to type a name in command line without ant quotes?
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
main() { char not; not=!2; printf("%d",not); }
x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }