Total Questions:-397 Goto Page:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
R4R ---> Articles--> C -->C Articles List
Page 1
Articles: #define f(g,g2) g##g2
main()
{
int var12=100;
printf("%d",f(var,12));
} Post Your View
View
By:Vivek kr. Agarwal Date:
Articles: #include<stdio.h>
main()
{
char s[]={'a','b','c','\n','c','\0'};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
}
Post Your View
ViewM
p is pointing to character '\n'.str1 is pointing to character 'a' ++*p meAnswer:"p is pointing to '\n' and that is incremented by one." the ASCII More --- >>
By:Vivek kr. Agarwal Date:
Articles: Is the following code legal?
typedef struct a
{
int x;
aType *b;
}aType
Post Your View
ViewNo
The typename aType is not known at the point of declaring the structure (forward references are not made for typedefs). More --- >>
By:Vivek Kr. Agarwal Date:
Articles: main( ){
static int a[ ] = {0,1,2,3,4};
int *p[ ] = {a,a+1,a+2,a+3,a+4};
int **ptr = p;
ptr++;
printf(�\n %d %d %d�, ptr-p, *ptr-a, **ptr);
*ptr++;
printf(�\n %d %d %d�, ptr-p Post Your View
Articles: main()
{
extern int i;
i=20;
printf("%d",i);
} Post Your View
Viewgive buld error as unresolved extern symbol i
More --- >>
By:ramya Date:
View
By:radhika singh Date:
Viewit will produce the run time error because it search the external variable while program running and that is not found
More --- >>
By:rajesh dwivedi Date:
ViewUnresolved external symbol i ...extern keyword shows that the symbol i is not declared in current scope, and in the program i is not declared in any o More --- >>
By:milind Date:
ViewUndefined variable i
More --- >>
By:Ajay Date:
View
By: Date:
View
By:pramod Date:
ViewCompiler time ErrorUndefined variable i extern int i is only a declaration not a definition
More --- >>
By:Rosy Date:
Viewhere linker error will come because extern will say it is defined some where else outside main. so to make it run do int i; outside main
More --- >>
By:neha Date:
ViewRuntime error,because there is no external defnition of i
More --- >>
By:Jose Xavier Date:
ViewRuntime error,because there is no external defnition of i
More --- >>
By:Jose Xavier Date:
View
By:shefali Date:
View
By:rahul Date:
ViewThe answer will b 20.....since the variable declared as a i just take d reference of variable declared globally
More --- >>
By:Prashant labde Date:
View
By:Jackass Date:
View
By:snehal Date:
View
By:snehal Date:
View
By:siav Date:
View
By:siva Date:
Viewit will show an error b'coz extern variable cann't be initialized it can initialize only through external linkage.
More --- >>
By:Prabakaran.R Date:prabathilag_609@yahoo.com
Viewerror, there is no definition for i.
More --- >>
By:shriram Raghuwanshi Date:shriram_101@hotmail.com
Articles: main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
} Post Your View
View45545
The arguments in function call are pushed into stack from left to right. The evaluation is from right to left. More --- >>
By:Vivek kr. Agarwal Date:
View
By: Date:
View
By:devin Date:
View
By:devin Date:
View45545GrabageValue
There are 6 %d...
More --- >>
By:Rohit Mittal Date:rohit_12_oct@yahoo.co.in
ViewCompiler dependent. function parameters are not evaluated in a defined order in C/C++
Can be.. 4 5 5 5 5 or 4 5 5 4 5
More --- >>
By:snehal Date:snehal.unique@gmail.com
View
By:Nagesh Anant Paul Date:nageshpaul1@gmail.com
Viewi++ i-- ++i --i i
5 6 6 5 5
More --- >>
By:THILLAI KAPIL Date:
View45545
because in printf() calculation will be evaluated right to left.
hence (i++,i--,++i,--i,i)
right to left: i=5,--i=4,(now i=4), ++i=5(now i=5) More --- >>
By:Rohit Kumar Date:rohitjmics37@gmail.com
Articles: main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
} Post Your View
Viewhai
\n - newline
\b - backspace
\r - linefeed More --- >>
By:Vivek kr. Agarwal Date:
View
By:prabu Date:vasanth.prabu@ymail.com
View
By:santu Date:ckeerthisri@yahoo.com
View
By:santu Date:ckeerthisri@yahoo.com
View
By:Nagendra Date:p.nagendrababu@gmail.com
View
By:Sebastian Balan Date:sabibalan111@gmail.com
Articles: main()
{
main();
}
Post Your View
ViewRuntime error : Stack overflow.
main function calls itself again and again. Each time the function is called its return address is stored in the ca More --- >>
By:Vivek Kr. Agarwal Date:
Articles: main()
{
char *cptr,c;
void *vptr,v;
c=10; v=0;
cptr=&c; vptr=&v;
printf("%c%v",c,v);
}
Post Your View
ViewCompiler error (at line number 4): size of v is Unknown.
You can create a variable of type void * but not of type void, since void is an empty type More --- >>
By:Vivek Kr. Agarwal Date:
View
By:vijay Date:
Articles: main()
{
char *p = "ayqm";
char c;
c = ++*p++;
printf("%c",c);
} Post Your View
Viewb
There is no difference between the expression ++*(p++) and ++*p++. Parenthesis just works as a visual clue for the reader to see which expression More --- >>
By:Vivek Kr. Agarwal Date:
Go:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Contact Us
|