Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1: What is the output of following code vold fun(int ptr) ptr 30F int main int y 20; funfsy printt(%d, y); return o; 02: What
Q1: What is the output of following code vold fun(int "ptr) ptr 30F int main int y 20; funfsy printt("%d", y); return o; 02: What is the output of following code? int maino f int arri) (1, 2, 3, 4, S int "p- arr; p+= 2; printf("%d", "p); return 0; Q3: circle the correct answer: oved forward and backward The name of an array is a pointer to its first element, but it cannot be m like a pointer. A: TRUE B: FALSE Q4: In the back of this paper, write your own implementation of one of the following functions: 1. Function countNonAlpha) that returns the number of non-alphabet characters in a string int countNonAlphafchar strll Example.' countNonAlpha("Hello % world @ 2018.) returns 6 2. Function stringLength) that takes a null-terminated string and returns its number of charact int stringlengthfchar tol) Example: stringlengthf Hello world") returns 11, stringlength(") returns O
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started