what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}
Answer Posted / nitin sharma
ans 1 2
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
What is the difference between abs() and fabs() functions?
Are comments included during the compilation stage and placed in the EXE file as well?
What are the types of macro formats?
What is the difference between #include
What do the functions atoi(), itoa() and gcvt() do?
What are type modifiers in c?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
int far *near * p; means
What are the advantages and disadvantages of pointers?
Can the sizeof operator be used to tell the size of an array passed to a function?
What does char * * argv mean in c?
What is the difference between array and pointer in c?
When is a void pointer used?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }