#define int char
main()
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Answer / susie
Answer :
sizeof(i)=1
Explanation:
Since the #define replaces the string int by the
macro char
| Is This Answer Correct ? | 90 Yes | 11 No |
String reverse with time complexity of n/2 with out using temporary variable.
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above
How we print the table of 2 using for loop in c programing?
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
how to return a multiple value from a function?
why is printf("%d %d %d",i++,--i,i--);
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
Printf can be implemented by using __________ list.
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }
void main() { int k=ret(sizeof(float)); printf("\n here value is %d",++k); } int ret(int ret) { ret += 2.5; return(ret); }