MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
C Program
→
C Fundamentals
→
%_#includevoid main(){ int *ptr, a=10; ptr = &a; *...
1.
%_#includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);}_%
A.
10, 10
B.
10, 11
C.
11, 10
D.
11, 11
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above?~!
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed?~!
*$_A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as?
*/*_What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); }?
%_#includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);}_%
_ Comment on the following pointer declaration?int *ptr, p;$?
_Comment on the following?const int *ptr;$?
_Choose the best answer.Prior to using a pointer variable$?
The declarationint (*p) [5];means?
Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));}
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies