#define MAX 3
main()
{
printf("MAX = %d
",MAX );
#undef MAX
#ifdef MAX
printf("Vector Institute”);
#endif
}
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); }
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is unary operator?
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Toggle nth bit in a given integer - num
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
What is derived datatype in c?
What is the difference between far and near in c?
differentiate built-in functions and user – defined functions.
Are the variables argc and argv are always local to main?