Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Nikhil Patil
0
votes
1
Self-Doubt
int main() { int i; for(i=1;i<=n;i++) f(i); } void f(int n) { int A[n]; int j; for(j=1;j<=n;j++) cout<<j; } What will be the time and space complexity of the following code snippet ?
int main() { int i; for(i=1;i<=n;i++) f(i); } void f(int n) { int A[n]; int j; for(j=1;j<=n;j++) cout<<j; }What will be the time and space complexity of the following cod...
531
views
answered
Jun 8, 2018
Algorithms
algorithms
time-complexity
space-complexity
+
–
0
votes
2
c Programming
what is the difference between a null pointer , a NULL macro ,the ASCII NUL Character and null string?
what is the difference between a null pointer , a NULL macro ,the ASCII NUL Character and null string?
283
views
answered
Jun 6, 2017
Programming in C
programming-in-c
+
–
2
votes
3
Array
Q. Assume the following C variable declaration int * M[10], N[10][10]; of the following expressions. 1. M [2][4] 2. N [2] 3. M [3] 4. N [2][4] Which will not give compile time errors if used as left-hand sides of assignment statements in a C program? (a) 2 and 4 only (b) 2, 3 and 4 only (c) 4 only (d) 1, 3 and 4 only
Q. Assume the following C variable declarationint * M[10], N[10][10];of the following expressions.1. M [4]2. N 3. M [3]4. N [4]Which will not give compile time errors ...
944
views
answered
Jun 6, 2017
DS
programming-in-c
array
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register